AWSEC2
Objective-C
@interface AWSEC2
Swift
class AWSEC2
Amazon Elastic Compute Cloud (Amazon EC2) provides secure and resizable computing capacity in the Amazon Web Services Cloud. Using Amazon EC2 eliminates the need to invest in hardware up front, so you can develop and deploy applications faster. Amazon Virtual Private Cloud (Amazon VPC) enables you to provision a logically isolated section of the Amazon Web Services Cloud where you can launch Amazon Web Services resources in a virtual network that you’ve defined. Amazon Elastic Block Store (Amazon EBS) provides block level storage volumes for use with EC2 instances. EBS volumes are highly available and reliable storage volumes that can be attached to any running instance and used like a hard drive.
To learn more, see the following resources:
Amazon EC2: AmazonEC2 product page, Amazon EC2 documentation
Amazon EBS: Amazon EBS product page, Amazon EBS documentation
Amazon VPC: Amazon VPC product page, Amazon VPC documentation
Amazon Web Services VPN: Amazon Web Services VPN product page, Amazon Web Services VPN documentation
-
The service configuration used to instantiate this service client.
Warning
Once the client is instantiated, do not modify the configuration object. It may cause unspecified behaviors.Declaration
Objective-C
@property (nonatomic, strong, readonly) AWSServiceConfiguration *configuration -
Returns the singleton service client. If the singleton object does not exist, the SDK instantiates the default service client with
defaultServiceConfigurationfrom[AWSServiceManager defaultServiceManager]. The reference to this object is maintained by the SDK, and you do not need to retain it manually.For example, set the default service configuration in
- application:didFinishLaunchingWithOptions:Swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USEast1, credentialsProvider: credentialProvider) AWSServiceManager.default().defaultServiceConfiguration = configuration return true}
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSEast1 credentialsProvider:credentialsProvider]; [AWSServiceManager defaultServiceManager].defaultServiceConfiguration = configuration; return YES; }Then call the following to get the default service client:
Swift
let EC2 = AWSEC2.default()Objective-C
AWSEC2 *EC2 = [AWSEC2 defaultEC2];Declaration
Objective-C
+ (nonnull instancetype)defaultEC2;Swift
class func `default`() -> SelfReturn Value
The default service client.
-
Creates a service client with the given service configuration and registers it for the key.
For example, set the default service configuration in
- application:didFinishLaunchingWithOptions:Swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider) AWSEC2.register(with: configuration!, forKey: "USWest2EC2") return true}
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2 credentialsProvider:credentialsProvider]; [AWSEC2 registerEC2WithConfiguration:configuration forKey:@"USWest2EC2"]; return YES; }Then call the following to get the service client:
Swift
let EC2 = AWSEC2(forKey: "USWest2EC2")Objective-C
AWSEC2 *EC2 = [AWSEC2 EC2ForKey:@"USWest2EC2"];Warning
After calling this method, do not modify the configuration object. It may cause unspecified behaviors.
Declaration
Objective-C
+ (void)registerEC2WithConfiguration:(id)configuration forKey:(nonnull NSString *)key;Swift
class func register(withConfiguration configuration: Any!, forKey key: String)Parameters
configurationA service configuration object.
keyA string to identify the service client.
-
Retrieves the service client associated with the key. You need to call
+ registerEC2WithConfiguration:forKey:before invoking this method.For example, set the default service configuration in
- application:didFinishLaunchingWithOptions:Swift
func application(_ application: UIApplication, didFinishLaunchingWithOptions launchOptions: [UIApplicationLaunchOptionsKey: Any]?) -> Bool { let credentialProvider = AWSCognitoCredentialsProvider(regionType: .USEast1, identityPoolId: "YourIdentityPoolId") let configuration = AWSServiceConfiguration(region: .USWest2, credentialsProvider: credentialProvider) AWSEC2.register(with: configuration!, forKey: "USWest2EC2") return true}
Objective-C
- (BOOL)application:(UIApplication *)application didFinishLaunchingWithOptions:(NSDictionary *)launchOptions { AWSCognitoCredentialsProvider *credentialsProvider = [[AWSCognitoCredentialsProvider alloc] initWithRegionType:AWSRegionUSEast1 identityPoolId:@"YourIdentityPoolId"]; AWSServiceConfiguration *configuration = [[AWSServiceConfiguration alloc] initWithRegion:AWSRegionUSWest2 credentialsProvider:credentialsProvider]; [AWSEC2 registerEC2WithConfiguration:configuration forKey:@"USWest2EC2"]; return YES; }Then call the following to get the service client:
Swift
let EC2 = AWSEC2(forKey: "USWest2EC2")Objective-C
AWSEC2 *EC2 = [AWSEC2 EC2ForKey:@"USWest2EC2"];Declaration
Objective-C
+ (nonnull instancetype)EC2ForKey:(nonnull NSString *)key;Swift
convenience init(forKey key: String)Parameters
keyA string to identify the service client.
Return Value
An instance of the service client.
-
Removes the service client associated with the key and release it.
Warning
Before calling this method, make sure no method is running on this client.
Declaration
Objective-C
+ (void)removeEC2ForKey:(nonnull NSString *)key;Swift
class func remove(forKey key: String)Parameters
keyA string to identify the service client.
-
Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.
See
AWSEC2AcceptReservedInstancesExchangeQuoteRequest
See
AWSEC2AcceptReservedInstancesExchangeQuoteResult
Declaration
Objective-C
- (id)acceptReservedInstancesExchangeQuote: (nonnull AWSEC2AcceptReservedInstancesExchangeQuoteRequest *)request;Swift
func acceptReservedInstancesExchangeQuote(_ request: AWSEC2AcceptReservedInstancesExchangeQuoteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AcceptReservedInstancesExchangeQuote service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AcceptReservedInstancesExchangeQuoteResult. -
Accepts the Convertible Reserved Instance exchange quote described in the GetReservedInstancesExchangeQuote call.
See
AWSEC2AcceptReservedInstancesExchangeQuoteRequest
See
AWSEC2AcceptReservedInstancesExchangeQuoteResult
Declaration
Objective-C
- (void) acceptReservedInstancesExchangeQuote: (nonnull AWSEC2AcceptReservedInstancesExchangeQuoteRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AcceptReservedInstancesExchangeQuoteResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func acceptReservedInstancesExchangeQuote(_ request: AWSEC2AcceptReservedInstancesExchangeQuoteRequest) async throws -> AWSEC2AcceptReservedInstancesExchangeQuoteResultParameters
requestA container for the necessary parameters to execute the AcceptReservedInstancesExchangeQuote service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Accepts a request to associate subnets with a transit gateway multicast domain.
See
AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest
See
AWSEC2AcceptTransitGatewayMulticastDomainAssociationsResult
Declaration
Objective-C
- (id)acceptTransitGatewayMulticastDomainAssociations: (nonnull AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest *) request;Swift
func acceptTransitGatewayMulticastDomainAssociations(_ request: AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AcceptTransitGatewayMulticastDomainAssociations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AcceptTransitGatewayMulticastDomainAssociationsResult. -
Accepts a request to associate subnets with a transit gateway multicast domain.
See
AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest
See
AWSEC2AcceptTransitGatewayMulticastDomainAssociationsResult
Declaration
Objective-C
- (void) acceptTransitGatewayMulticastDomainAssociations: (nonnull AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest *) request completionHandler: (void (^_Nullable)( AWSEC2AcceptTransitGatewayMulticastDomainAssociationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func acceptTransitGatewayMulticastDomainAssociations(_ request: AWSEC2AcceptTransitGatewayMulticastDomainAssociationsRequest) async throws -> AWSEC2AcceptTransitGatewayMulticastDomainAssociationsResultParameters
requestA container for the necessary parameters to execute the AcceptTransitGatewayMulticastDomainAssociations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Accepts a transit gateway peering attachment request. The peering attachment must be in the
pendingAcceptancestate.See
AWSEC2AcceptTransitGatewayPeeringAttachmentRequest
See
AWSEC2AcceptTransitGatewayPeeringAttachmentResult
Declaration
Objective-C
- (id)acceptTransitGatewayPeeringAttachment: (nonnull AWSEC2AcceptTransitGatewayPeeringAttachmentRequest *)request;Swift
func acceptTransitGatewayPeeringAttachment(_ request: AWSEC2AcceptTransitGatewayPeeringAttachmentRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AcceptTransitGatewayPeeringAttachment service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AcceptTransitGatewayPeeringAttachmentResult. -
Accepts a transit gateway peering attachment request. The peering attachment must be in the
pendingAcceptancestate.See
AWSEC2AcceptTransitGatewayPeeringAttachmentRequest
See
AWSEC2AcceptTransitGatewayPeeringAttachmentResult
Declaration
Objective-C
- (void) acceptTransitGatewayPeeringAttachment: (nonnull AWSEC2AcceptTransitGatewayPeeringAttachmentRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AcceptTransitGatewayPeeringAttachmentResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func acceptTransitGatewayPeeringAttachment(_ request: AWSEC2AcceptTransitGatewayPeeringAttachmentRequest) async throws -> AWSEC2AcceptTransitGatewayPeeringAttachmentResultParameters
requestA container for the necessary parameters to execute the AcceptTransitGatewayPeeringAttachment service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Accepts a request to attach a VPC to a transit gateway.
The VPC attachment must be in the
pendingAcceptancestate. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment to reject a VPC attachment request.See
AWSEC2AcceptTransitGatewayVpcAttachmentRequest
See
AWSEC2AcceptTransitGatewayVpcAttachmentResult
Declaration
Objective-C
- (id)acceptTransitGatewayVpcAttachment: (nonnull AWSEC2AcceptTransitGatewayVpcAttachmentRequest *)request;Swift
func acceptTransitGatewayVpcAttachment(_ request: AWSEC2AcceptTransitGatewayVpcAttachmentRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AcceptTransitGatewayVpcAttachment service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AcceptTransitGatewayVpcAttachmentResult. -
Accepts a request to attach a VPC to a transit gateway.
The VPC attachment must be in the
pendingAcceptancestate. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use RejectTransitGatewayVpcAttachment to reject a VPC attachment request.See
AWSEC2AcceptTransitGatewayVpcAttachmentRequest
See
AWSEC2AcceptTransitGatewayVpcAttachmentResult
Declaration
Objective-C
- (void)acceptTransitGatewayVpcAttachment: (nonnull AWSEC2AcceptTransitGatewayVpcAttachmentRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AcceptTransitGatewayVpcAttachmentResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func acceptTransitGatewayVpcAttachment(_ request: AWSEC2AcceptTransitGatewayVpcAttachmentRequest) async throws -> AWSEC2AcceptTransitGatewayVpcAttachmentResultParameters
requestA container for the necessary parameters to execute the AcceptTransitGatewayVpcAttachment service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Accepts one or more interface VPC endpoint connection requests to your VPC endpoint service.
See
AWSEC2AcceptVpcEndpointConnectionsRequest
See
AWSEC2AcceptVpcEndpointConnectionsResult
Declaration
Objective-C
- (id)acceptVpcEndpointConnections: (nonnull AWSEC2AcceptVpcEndpointConnectionsRequest *)request;Swift
func acceptVpcEndpointConnections(_ request: AWSEC2AcceptVpcEndpointConnectionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AcceptVpcEndpointConnections service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AcceptVpcEndpointConnectionsResult. -
Accepts one or more interface VPC endpoint connection requests to your VPC endpoint service.
See
AWSEC2AcceptVpcEndpointConnectionsRequest
See
AWSEC2AcceptVpcEndpointConnectionsResult
Declaration
Objective-C
- (void)acceptVpcEndpointConnections: (nonnull AWSEC2AcceptVpcEndpointConnectionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AcceptVpcEndpointConnectionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func acceptVpcEndpointConnections(_ request: AWSEC2AcceptVpcEndpointConnectionsRequest) async throws -> AWSEC2AcceptVpcEndpointConnectionsResultParameters
requestA container for the necessary parameters to execute the AcceptVpcEndpointConnections service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the
pending-acceptancestate, and you must be the owner of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding VPC peering connection requests.For an inter-Region VPC peering connection request, you must accept the VPC peering connection in the Region of the accepter VPC.
See
AWSEC2AcceptVpcPeeringConnectionRequest
See
AWSEC2AcceptVpcPeeringConnectionResult
Declaration
Objective-C
- (id)acceptVpcPeeringConnection: (nonnull AWSEC2AcceptVpcPeeringConnectionRequest *)request;Swift
func acceptVpcPeeringConnection(_ request: AWSEC2AcceptVpcPeeringConnectionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AcceptVpcPeeringConnection service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AcceptVpcPeeringConnectionResult. -
Accept a VPC peering connection request. To accept a request, the VPC peering connection must be in the
pending-acceptancestate, and you must be the owner of the peer VPC. Use DescribeVpcPeeringConnections to view your outstanding VPC peering connection requests.For an inter-Region VPC peering connection request, you must accept the VPC peering connection in the Region of the accepter VPC.
See
AWSEC2AcceptVpcPeeringConnectionRequest
See
AWSEC2AcceptVpcPeeringConnectionResult
Declaration
Objective-C
- (void)acceptVpcPeeringConnection: (nonnull AWSEC2AcceptVpcPeeringConnectionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AcceptVpcPeeringConnectionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func acceptVpcPeeringConnection(_ request: AWSEC2AcceptVpcPeeringConnectionRequest) async throws -> AWSEC2AcceptVpcPeeringConnectionResultParameters
requestA container for the necessary parameters to execute the AcceptVpcPeeringConnection service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Advertises an IPv4 or IPv6 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP).
You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.
We recommend that you stop advertising the BYOIP CIDR from other locations when you advertise it from Amazon Web Services. To minimize down time, you can configure your Amazon Web Services resources to use an address from a BYOIP CIDR before it is advertised, and then simultaneously stop advertising it from the current location and start advertising it through Amazon Web Services.
It can take a few minutes before traffic to the specified addresses starts routing to Amazon Web Services because of BGP propagation delays.
To stop advertising the BYOIP CIDR, use WithdrawByoipCidr.
See
AWSEC2AdvertiseByoipCidrRequest
See
AWSEC2AdvertiseByoipCidrResult
Declaration
Objective-C
- (id)advertiseByoipCidr:(nonnull AWSEC2AdvertiseByoipCidrRequest *)request;Swift
func advertiseByoipCidr(_ request: AWSEC2AdvertiseByoipCidrRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AdvertiseByoipCidr service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AdvertiseByoipCidrResult. -
Advertises an IPv4 or IPv6 address range that is provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP).
You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.
We recommend that you stop advertising the BYOIP CIDR from other locations when you advertise it from Amazon Web Services. To minimize down time, you can configure your Amazon Web Services resources to use an address from a BYOIP CIDR before it is advertised, and then simultaneously stop advertising it from the current location and start advertising it through Amazon Web Services.
It can take a few minutes before traffic to the specified addresses starts routing to Amazon Web Services because of BGP propagation delays.
To stop advertising the BYOIP CIDR, use WithdrawByoipCidr.
See
AWSEC2AdvertiseByoipCidrRequest
See
AWSEC2AdvertiseByoipCidrResult
Declaration
Objective-C
- (void)advertiseByoipCidr:(nonnull AWSEC2AdvertiseByoipCidrRequest *)request completionHandler: (void (^_Nullable)(AWSEC2AdvertiseByoipCidrResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func advertiseByoipCidr(_ request: AWSEC2AdvertiseByoipCidrRequest) async throws -> AWSEC2AdvertiseByoipCidrResultParameters
requestA container for the necessary parameters to execute the AdvertiseByoipCidr service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Allocates an Elastic IP address to your Amazon Web Services account. After you allocate the Elastic IP address you can associate it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address pool and can be allocated to a different Amazon Web Services account.
You can allocate an Elastic IP address from an address pool owned by Amazon Web Services or from an address pool created from a public IPv4 address range that you have brought to Amazon Web Services for use with your Amazon Web Services resources using bring your own IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.
[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an Elastic IP address that you released after it is allocated to another Amazon Web Services account. You cannot recover an Elastic IP address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.
An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate 5 Elastic IP addresses for EC2-Classic per Region and 5 Elastic IP addresses for EC2-VPC per Region.
For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
You can allocate a carrier IP address which is a public IP address from a telecommunication carrier, to a network interface which resides in a subnet in a Wavelength Zone (for example an EC2 instance).
See
AWSEC2AllocateAddressRequest
See
AWSEC2AllocateAddressResult
Declaration
Objective-C
- (id)allocateAddress:(nonnull AWSEC2AllocateAddressRequest *)request;Swift
func allocateAddress(_ request: AWSEC2AllocateAddressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AllocateAddress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AllocateAddressResult. -
Allocates an Elastic IP address to your Amazon Web Services account. After you allocate the Elastic IP address you can associate it with an instance or network interface. After you release an Elastic IP address, it is released to the IP address pool and can be allocated to a different Amazon Web Services account.
You can allocate an Elastic IP address from an address pool owned by Amazon Web Services or from an address pool created from a public IPv4 address range that you have brought to Amazon Web Services for use with your Amazon Web Services resources using bring your own IP addresses (BYOIP). For more information, see Bring Your Own IP Addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.
[EC2-VPC] If you release an Elastic IP address, you might be able to recover it. You cannot recover an Elastic IP address that you released after it is allocated to another Amazon Web Services account. You cannot recover an Elastic IP address for EC2-Classic. To attempt to recover an Elastic IP address that you released, specify it in this operation.
An Elastic IP address is for use either in the EC2-Classic platform or in a VPC. By default, you can allocate 5 Elastic IP addresses for EC2-Classic per Region and 5 Elastic IP addresses for EC2-VPC per Region.
For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
You can allocate a carrier IP address which is a public IP address from a telecommunication carrier, to a network interface which resides in a subnet in a Wavelength Zone (for example an EC2 instance).
See
AWSEC2AllocateAddressRequest
See
AWSEC2AllocateAddressResult
Declaration
Objective-C
- (void)allocateAddress:(nonnull AWSEC2AllocateAddressRequest *)request completionHandler: (void (^_Nullable)(AWSEC2AllocateAddressResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func allocateAddress(_ request: AWSEC2AllocateAddressRequest) async throws -> AWSEC2AllocateAddressResultParameters
requestA container for the necessary parameters to execute the AllocateAddress service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Allocates a Dedicated Host to your account. At a minimum, specify the supported instance type or instance family, the Availability Zone in which to allocate the host, and the number of hosts to allocate.
See
AWSEC2AllocateHostsRequest
See
AWSEC2AllocateHostsResult
Declaration
Objective-C
- (id)allocateHosts:(nonnull AWSEC2AllocateHostsRequest *)request;Swift
func allocateHosts(_ request: AWSEC2AllocateHostsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AllocateHosts service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AllocateHostsResult. -
Allocates a Dedicated Host to your account. At a minimum, specify the supported instance type or instance family, the Availability Zone in which to allocate the host, and the number of hosts to allocate.
See
AWSEC2AllocateHostsRequest
See
AWSEC2AllocateHostsResult
Declaration
Objective-C
- (void)allocateHosts:(nonnull AWSEC2AllocateHostsRequest *)request completionHandler:(void (^_Nullable)(AWSEC2AllocateHostsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func allocateHosts(_ request: AWSEC2AllocateHostsRequest) async throws -> AWSEC2AllocateHostsResultParameters
requestA container for the necessary parameters to execute the AllocateHosts service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Allocate a CIDR from an IPAM pool. In IPAM, an allocation is a CIDR assignment from an IPAM pool to another resource or IPAM pool. For more information, see Allocate CIDRs in the Amazon VPC IPAM User Guide.
See
AWSEC2AllocateIpamPoolCidrRequest
See
AWSEC2AllocateIpamPoolCidrResult
Declaration
Objective-C
- (id)allocateIpamPoolCidr:(nonnull AWSEC2AllocateIpamPoolCidrRequest *)request;Swift
func allocateIpamPoolCidr(_ request: AWSEC2AllocateIpamPoolCidrRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AllocateIpamPoolCidr service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AllocateIpamPoolCidrResult. -
Allocate a CIDR from an IPAM pool. In IPAM, an allocation is a CIDR assignment from an IPAM pool to another resource or IPAM pool. For more information, see Allocate CIDRs in the Amazon VPC IPAM User Guide.
See
AWSEC2AllocateIpamPoolCidrRequest
See
AWSEC2AllocateIpamPoolCidrResult
Declaration
Objective-C
- (void)allocateIpamPoolCidr: (nonnull AWSEC2AllocateIpamPoolCidrRequest *)request completionHandler: (void (^_Nullable)(AWSEC2AllocateIpamPoolCidrResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func allocateIpamPoolCidr(_ request: AWSEC2AllocateIpamPoolCidrRequest) async throws -> AWSEC2AllocateIpamPoolCidrResultParameters
requestA container for the necessary parameters to execute the AllocateIpamPoolCidr service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Applies a security group to the association between the target network and the Client VPN endpoint. This action replaces the existing security groups with the specified security groups.
See
AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest
See
AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkResult
Declaration
Objective-C
- (id)applySecurityGroupsToClientVpnTargetNetwork: (nonnull AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest *)request;Swift
func applySecurityGroups(toClientVpnTargetNetwork request: AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ApplySecurityGroupsToClientVpnTargetNetwork service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ApplySecurityGroupsToClientVpnTargetNetworkResult. -
Applies a security group to the association between the target network and the Client VPN endpoint. This action replaces the existing security groups with the specified security groups.
See
AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest
See
AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkResult
Declaration
Objective-C
- (void) applySecurityGroupsToClientVpnTargetNetwork: (nonnull AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest *) request completionHandler: (void (^_Nullable)( AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func applySecurityGroups(toClientVpnTargetNetwork request: AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkRequest) async throws -> AWSEC2ApplySecurityGroupsToClientVpnTargetNetworkResultParameters
requestA container for the necessary parameters to execute the ApplySecurityGroupsToClientVpnTargetNetwork service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Assigns one or more IPv6 addresses to the specified network interface. You can specify one or more specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet’s IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type in the Amazon Elastic Compute Cloud User Guide.
You must specify either the IPv6 addresses or the IPv6 address count in the request.
You can optionally use Prefix Delegation on the network interface. You must specify either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For information, see Assigning prefixes to Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2AssignIpv6AddressesRequest
See
AWSEC2AssignIpv6AddressesResult
Declaration
Objective-C
- (id)assignIpv6Addresses:(nonnull AWSEC2AssignIpv6AddressesRequest *)request;Swift
func assignIpv6Addresses(_ request: AWSEC2AssignIpv6AddressesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssignIpv6Addresses service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssignIpv6AddressesResult. -
Assigns one or more IPv6 addresses to the specified network interface. You can specify one or more specific IPv6 addresses, or you can specify the number of IPv6 addresses to be automatically assigned from within the subnet’s IPv6 CIDR block range. You can assign as many IPv6 addresses to a network interface as you can assign private IPv4 addresses, and the limit varies per instance type. For information, see IP Addresses Per Network Interface Per Instance Type in the Amazon Elastic Compute Cloud User Guide.
You must specify either the IPv6 addresses or the IPv6 address count in the request.
You can optionally use Prefix Delegation on the network interface. You must specify either the IPV6 Prefix Delegation prefixes, or the IPv6 Prefix Delegation count. For information, see Assigning prefixes to Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2AssignIpv6AddressesRequest
See
AWSEC2AssignIpv6AddressesResult
Declaration
Objective-C
- (void)assignIpv6Addresses:(nonnull AWSEC2AssignIpv6AddressesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2AssignIpv6AddressesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func assignIpv6Addresses(_ request: AWSEC2AssignIpv6AddressesRequest) async throws -> AWSEC2AssignIpv6AddressesResultParameters
requestA container for the necessary parameters to execute the AssignIpv6Addresses service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Assigns one or more secondary private IP addresses to the specified network interface.
You can specify one or more specific secondary IP addresses, or you can specify the number of secondary IP addresses to be automatically assigned within the subnet’s CIDR block range. The number of secondary IP addresses that you can assign to an instance varies by instance type. For information about instance types, see Instance Types in the Amazon Elastic Compute Cloud User Guide. For more information about Elastic IP addresses, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
When you move a secondary private IP address to another network interface, any Elastic IP address that is associated with the IP address is also moved.
Remapping an IP address is an asynchronous operation. When you move an IP address from one network interface to another, check
network/interfaces/macs/mac/local-ipv4sin the instance metadata to confirm that the remapping is complete.You must specify either the IP addresses or the IP address count in the request.
You can optionally use Prefix Delegation on the network interface. You must specify either the IPv4 Prefix Delegation prefixes, or the IPv4 Prefix Delegation count. For information, see Assigning prefixes to Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2AssignPrivateIpAddressesRequest
See
AWSEC2AssignPrivateIpAddressesResult
Declaration
Objective-C
- (id)assignPrivateIpAddresses: (nonnull AWSEC2AssignPrivateIpAddressesRequest *)request;Swift
func assignPrivateIpAddresses(_ request: AWSEC2AssignPrivateIpAddressesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssignPrivateIpAddresses service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssignPrivateIpAddressesResult. -
Assigns one or more secondary private IP addresses to the specified network interface.
You can specify one or more specific secondary IP addresses, or you can specify the number of secondary IP addresses to be automatically assigned within the subnet’s CIDR block range. The number of secondary IP addresses that you can assign to an instance varies by instance type. For information about instance types, see Instance Types in the Amazon Elastic Compute Cloud User Guide. For more information about Elastic IP addresses, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
When you move a secondary private IP address to another network interface, any Elastic IP address that is associated with the IP address is also moved.
Remapping an IP address is an asynchronous operation. When you move an IP address from one network interface to another, check
network/interfaces/macs/mac/local-ipv4sin the instance metadata to confirm that the remapping is complete.You must specify either the IP addresses or the IP address count in the request.
You can optionally use Prefix Delegation on the network interface. You must specify either the IPv4 Prefix Delegation prefixes, or the IPv4 Prefix Delegation count. For information, see Assigning prefixes to Amazon EC2 network interfaces in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2AssignPrivateIpAddressesRequest
See
AWSEC2AssignPrivateIpAddressesResult
Declaration
Objective-C
- (void)assignPrivateIpAddresses: (nonnull AWSEC2AssignPrivateIpAddressesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AssignPrivateIpAddressesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func assignPrivateIpAddresses(_ request: AWSEC2AssignPrivateIpAddressesRequest) async throws -> AWSEC2AssignPrivateIpAddressesResultParameters
requestA container for the necessary parameters to execute the AssignPrivateIpAddresses service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates an Elastic IP address, or carrier IP address (for instances that are in subnets in Wavelength Zones) with an instance or a network interface. Before you can use an Elastic IP address, you must allocate it to your account.
An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
[EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is already associated with a different instance, it is disassociated from that instance and associated with the specified instance. If you associate an Elastic IP address with an instance that has an existing Elastic IP address, the existing address is disassociated from the instance, but remains allocated to your account.
[VPC in an EC2-Classic account] If you don’t specify a private IP address, the Elastic IP address is associated with the primary IP address. If the Elastic IP address is already associated with a different instance or a network interface, you get an error unless you allow reassociation. You cannot associate an Elastic IP address with an instance or network interface that has an existing Elastic IP address.
[Subnets in Wavelength Zones] You can associate an IP address from the telecommunication carrier to the instance or network interface.
You cannot associate an Elastic IP address with an interface in a different network border group.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error, and you may be charged for each time the Elastic IP address is remapped to the same instance. For more information, see the Elastic IP Addresses section of Amazon EC2 Pricing.
See
AWSEC2AssociateAddressRequest
See
AWSEC2AssociateAddressResult
Declaration
Objective-C
- (id)associateAddress:(nonnull AWSEC2AssociateAddressRequest *)request;Swift
func associateAddress(_ request: AWSEC2AssociateAddressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateAddress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssociateAddressResult. -
Associates an Elastic IP address, or carrier IP address (for instances that are in subnets in Wavelength Zones) with an instance or a network interface. Before you can use an Elastic IP address, you must allocate it to your account.
An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
[EC2-Classic, VPC in an EC2-VPC-only account] If the Elastic IP address is already associated with a different instance, it is disassociated from that instance and associated with the specified instance. If you associate an Elastic IP address with an instance that has an existing Elastic IP address, the existing address is disassociated from the instance, but remains allocated to your account.
[VPC in an EC2-Classic account] If you don’t specify a private IP address, the Elastic IP address is associated with the primary IP address. If the Elastic IP address is already associated with a different instance or a network interface, you get an error unless you allow reassociation. You cannot associate an Elastic IP address with an instance or network interface that has an existing Elastic IP address.
[Subnets in Wavelength Zones] You can associate an IP address from the telecommunication carrier to the instance or network interface.
You cannot associate an Elastic IP address with an interface in a different network border group.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error, and you may be charged for each time the Elastic IP address is remapped to the same instance. For more information, see the Elastic IP Addresses section of Amazon EC2 Pricing.
See
AWSEC2AssociateAddressRequest
See
AWSEC2AssociateAddressResult
Declaration
Objective-C
- (void)associateAddress:(nonnull AWSEC2AssociateAddressRequest *)request completionHandler: (void (^_Nullable)(AWSEC2AssociateAddressResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associateAddress(_ request: AWSEC2AssociateAddressRequest) async throws -> AWSEC2AssociateAddressResultParameters
requestA container for the necessary parameters to execute the AssociateAddress service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates a target network with a Client VPN endpoint. A target network is a subnet in a VPC. You can associate multiple subnets from the same VPC with a Client VPN endpoint. You can associate only one subnet in each Availability Zone. We recommend that you associate at least two subnets to provide Availability Zone redundancy.
If you specified a VPC when you created the Client VPN endpoint or if you have previous subnet associations, the specified subnet must be in the same VPC. To specify a subnet that’s in a different VPC, you must first modify the Client VPN endpoint (ModifyClientVpnEndpoint) and change the VPC that’s associated with it.
See
AWSEC2AssociateClientVpnTargetNetworkRequest
See
AWSEC2AssociateClientVpnTargetNetworkResult
Declaration
Objective-C
- (id)associateClientVpnTargetNetwork: (nonnull AWSEC2AssociateClientVpnTargetNetworkRequest *)request;Swift
func associateClientVpnTargetNetwork(_ request: AWSEC2AssociateClientVpnTargetNetworkRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateClientVpnTargetNetwork service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssociateClientVpnTargetNetworkResult. -
Associates a target network with a Client VPN endpoint. A target network is a subnet in a VPC. You can associate multiple subnets from the same VPC with a Client VPN endpoint. You can associate only one subnet in each Availability Zone. We recommend that you associate at least two subnets to provide Availability Zone redundancy.
If you specified a VPC when you created the Client VPN endpoint or if you have previous subnet associations, the specified subnet must be in the same VPC. To specify a subnet that’s in a different VPC, you must first modify the Client VPN endpoint (ModifyClientVpnEndpoint) and change the VPC that’s associated with it.
See
AWSEC2AssociateClientVpnTargetNetworkRequest
See
AWSEC2AssociateClientVpnTargetNetworkResult
Declaration
Objective-C
- (void)associateClientVpnTargetNetwork: (nonnull AWSEC2AssociateClientVpnTargetNetworkRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AssociateClientVpnTargetNetworkResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associateClientVpnTargetNetwork(_ request: AWSEC2AssociateClientVpnTargetNetworkRequest) async throws -> AWSEC2AssociateClientVpnTargetNetworkResultParameters
requestA container for the necessary parameters to execute the AssociateClientVpnTargetNetwork service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates a set of DHCP options (that you’ve previously created) with the specified VPC, or associates no DHCP options with the VPC.
After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don’t need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.
For more information, see DHCP options sets in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2AssociateDhcpOptionsRequest
Declaration
Objective-C
- (id)associateDhcpOptions:(nonnull AWSEC2AssociateDhcpOptionsRequest *)request;Swift
func associateDhcpOptions(_ request: AWSEC2AssociateDhcpOptionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateDhcpOptions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Associates a set of DHCP options (that you’ve previously created) with the specified VPC, or associates no DHCP options with the VPC.
After you associate the options with the VPC, any existing instances and all new instances that you launch in that VPC use the options. You don’t need to restart or relaunch the instances. They automatically pick up the changes within a few hours, depending on how frequently the instance renews its DHCP lease. You can explicitly renew the lease using the operating system on the instance.
For more information, see DHCP options sets in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2AssociateDhcpOptionsRequest
Declaration
Objective-C
- (void)associateDhcpOptions: (nonnull AWSEC2AssociateDhcpOptionsRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func associateDhcpOptions(_ request: AWSEC2AssociateDhcpOptionsRequest) async throwsParameters
requestA container for the necessary parameters to execute the AssociateDhcpOptions service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates an Identity and Access Management (IAM) role with an Certificate Manager (ACM) certificate. This enables the certificate to be used by the ACM for Nitro Enclaves application inside an enclave. For more information, see Certificate Manager for Nitro Enclaves in the Amazon Web Services Nitro Enclaves User Guide.
When the IAM role is associated with the ACM certificate, the certificate, certificate chain, and encrypted private key are placed in an Amazon S3 bucket that only the associated IAM role can access. The private key of the certificate is encrypted with an Amazon Web Services managed key that has an attached attestation-based key policy.
To enable the IAM role to access the Amazon S3 object, you must grant it permission to call
s3:GetObjecton the Amazon S3 bucket returned by the command. To enable the IAM role to access the KMS key, you must grant it permission to callkms:Decrypton the KMS key returned by the command. For more information, see Grant the role permission to access the certificate and encryption key in the Amazon Web Services Nitro Enclaves User Guide.See
AWSEC2AssociateEnclaveCertificateIamRoleRequest
See
AWSEC2AssociateEnclaveCertificateIamRoleResult
Declaration
Objective-C
- (id)associateEnclaveCertificateIamRole: (nonnull AWSEC2AssociateEnclaveCertificateIamRoleRequest *)request;Swift
func associateEnclaveCertificateIamRole(_ request: AWSEC2AssociateEnclaveCertificateIamRoleRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateEnclaveCertificateIamRole service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssociateEnclaveCertificateIamRoleResult. -
Associates an Identity and Access Management (IAM) role with an Certificate Manager (ACM) certificate. This enables the certificate to be used by the ACM for Nitro Enclaves application inside an enclave. For more information, see Certificate Manager for Nitro Enclaves in the Amazon Web Services Nitro Enclaves User Guide.
When the IAM role is associated with the ACM certificate, the certificate, certificate chain, and encrypted private key are placed in an Amazon S3 bucket that only the associated IAM role can access. The private key of the certificate is encrypted with an Amazon Web Services managed key that has an attached attestation-based key policy.
To enable the IAM role to access the Amazon S3 object, you must grant it permission to call
s3:GetObjecton the Amazon S3 bucket returned by the command. To enable the IAM role to access the KMS key, you must grant it permission to callkms:Decrypton the KMS key returned by the command. For more information, see Grant the role permission to access the certificate and encryption key in the Amazon Web Services Nitro Enclaves User Guide.See
AWSEC2AssociateEnclaveCertificateIamRoleRequest
See
AWSEC2AssociateEnclaveCertificateIamRoleResult
Declaration
Objective-C
- (void)associateEnclaveCertificateIamRole: (nonnull AWSEC2AssociateEnclaveCertificateIamRoleRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AssociateEnclaveCertificateIamRoleResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associateEnclaveCertificateIamRole(_ request: AWSEC2AssociateEnclaveCertificateIamRoleRequest) async throws -> AWSEC2AssociateEnclaveCertificateIamRoleResultParameters
requestA container for the necessary parameters to execute the AssociateEnclaveCertificateIamRole service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.
See
AWSEC2AssociateIamInstanceProfileRequest
See
AWSEC2AssociateIamInstanceProfileResult
Declaration
Objective-C
- (id)associateIamInstanceProfile: (nonnull AWSEC2AssociateIamInstanceProfileRequest *)request;Swift
func associateIamInstanceProfile(_ request: AWSEC2AssociateIamInstanceProfileRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateIamInstanceProfile service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssociateIamInstanceProfileResult. -
Associates an IAM instance profile with a running or stopped instance. You cannot associate more than one IAM instance profile with an instance.
See
AWSEC2AssociateIamInstanceProfileRequest
See
AWSEC2AssociateIamInstanceProfileResult
Declaration
Objective-C
- (void)associateIamInstanceProfile: (nonnull AWSEC2AssociateIamInstanceProfileRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AssociateIamInstanceProfileResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associateIamInstanceProfile(_ request: AWSEC2AssociateIamInstanceProfileRequest) async throws -> AWSEC2AssociateIamInstanceProfileResultParameters
requestA container for the necessary parameters to execute the AssociateIamInstanceProfile service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates one or more targets with an event window. Only one type of target (instance IDs, Dedicated Host IDs, or tags) can be specified with an event window.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2AssociateInstanceEventWindowRequest
See
AWSEC2AssociateInstanceEventWindowResult
Declaration
Objective-C
- (id)associateInstanceEventWindow: (nonnull AWSEC2AssociateInstanceEventWindowRequest *)request;Swift
func associateInstanceEventWindow(_ request: AWSEC2AssociateInstanceEventWindowRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateInstanceEventWindow service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssociateInstanceEventWindowResult. -
Associates one or more targets with an event window. Only one type of target (instance IDs, Dedicated Host IDs, or tags) can be specified with an event window.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2AssociateInstanceEventWindowRequest
See
AWSEC2AssociateInstanceEventWindowResult
Declaration
Objective-C
- (void)associateInstanceEventWindow: (nonnull AWSEC2AssociateInstanceEventWindowRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AssociateInstanceEventWindowResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associateInstanceEventWindow(_ request: AWSEC2AssociateInstanceEventWindowRequest) async throws -> AWSEC2AssociateInstanceEventWindowResultParameters
requestA container for the necessary parameters to execute the AssociateInstanceEventWindow service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC. This association causes traffic from the subnet or gateway to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table later. A route table can be associated with multiple subnets.
For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2AssociateRouteTableRequest
See
AWSEC2AssociateRouteTableResult
Declaration
Objective-C
- (id)associateRouteTable:(nonnull AWSEC2AssociateRouteTableRequest *)request;Swift
func associateRouteTable(_ request: AWSEC2AssociateRouteTableRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateRouteTable service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssociateRouteTableResult. -
Associates a subnet in your VPC or an internet gateway or virtual private gateway attached to your VPC with a route table in your VPC. This association causes traffic from the subnet or gateway to be routed according to the routes in the route table. The action returns an association ID, which you need in order to disassociate the route table later. A route table can be associated with multiple subnets.
For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2AssociateRouteTableRequest
See
AWSEC2AssociateRouteTableResult
Declaration
Objective-C
- (void)associateRouteTable:(nonnull AWSEC2AssociateRouteTableRequest *)request completionHandler: (void (^_Nullable)(AWSEC2AssociateRouteTableResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associateRouteTable(_ request: AWSEC2AssociateRouteTableRequest) async throws -> AWSEC2AssociateRouteTableResultParameters
requestA container for the necessary parameters to execute the AssociateRouteTable service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet. An IPv6 CIDR block must have a prefix length of /64.
See
AWSEC2AssociateSubnetCidrBlockRequest
See
AWSEC2AssociateSubnetCidrBlockResult
Declaration
Objective-C
- (id)associateSubnetCidrBlock: (nonnull AWSEC2AssociateSubnetCidrBlockRequest *)request;Swift
func associateSubnetCidrBlock(_ request: AWSEC2AssociateSubnetCidrBlockRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateSubnetCidrBlock service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssociateSubnetCidrBlockResult. -
Associates a CIDR block with your subnet. You can only associate a single IPv6 CIDR block with your subnet. An IPv6 CIDR block must have a prefix length of /64.
See
AWSEC2AssociateSubnetCidrBlockRequest
See
AWSEC2AssociateSubnetCidrBlockResult
Declaration
Objective-C
- (void)associateSubnetCidrBlock: (nonnull AWSEC2AssociateSubnetCidrBlockRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AssociateSubnetCidrBlockResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associateSubnetCidrBlock(_ request: AWSEC2AssociateSubnetCidrBlockRequest) async throws -> AWSEC2AssociateSubnetCidrBlockResultParameters
requestA container for the necessary parameters to execute the AssociateSubnetCidrBlock service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain.
The transit gateway attachment must be in the available state before you can add a resource. Use DescribeTransitGatewayAttachments to see the state of the attachment.
See
AWSEC2AssociateTransitGatewayMulticastDomainRequest
See
AWSEC2AssociateTransitGatewayMulticastDomainResult
Declaration
Objective-C
- (id)associateTransitGatewayMulticastDomain: (nonnull AWSEC2AssociateTransitGatewayMulticastDomainRequest *)request;Swift
func associateTransitGatewayMulticastDomain(_ request: AWSEC2AssociateTransitGatewayMulticastDomainRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateTransitGatewayMulticastDomain service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssociateTransitGatewayMulticastDomainResult. -
Associates the specified subnets and transit gateway attachments with the specified transit gateway multicast domain.
The transit gateway attachment must be in the available state before you can add a resource. Use DescribeTransitGatewayAttachments to see the state of the attachment.
See
AWSEC2AssociateTransitGatewayMulticastDomainRequest
See
AWSEC2AssociateTransitGatewayMulticastDomainResult
Declaration
Objective-C
- (void) associateTransitGatewayMulticastDomain: (nonnull AWSEC2AssociateTransitGatewayMulticastDomainRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AssociateTransitGatewayMulticastDomainResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associateTransitGatewayMulticastDomain(_ request: AWSEC2AssociateTransitGatewayMulticastDomainRequest) async throws -> AWSEC2AssociateTransitGatewayMulticastDomainResultParameters
requestA container for the necessary parameters to execute the AssociateTransitGatewayMulticastDomain service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates the specified attachment with the specified transit gateway route table. You can associate only one route table with an attachment.
See
AWSEC2AssociateTransitGatewayRouteTableRequest
See
AWSEC2AssociateTransitGatewayRouteTableResult
Declaration
Objective-C
- (id)associateTransitGatewayRouteTable: (nonnull AWSEC2AssociateTransitGatewayRouteTableRequest *)request;Swift
func associateTransitGatewayRouteTable(_ request: AWSEC2AssociateTransitGatewayRouteTableRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateTransitGatewayRouteTable service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssociateTransitGatewayRouteTableResult. -
Associates the specified attachment with the specified transit gateway route table. You can associate only one route table with an attachment.
See
AWSEC2AssociateTransitGatewayRouteTableRequest
See
AWSEC2AssociateTransitGatewayRouteTableResult
Declaration
Objective-C
- (void)associateTransitGatewayRouteTable: (nonnull AWSEC2AssociateTransitGatewayRouteTableRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AssociateTransitGatewayRouteTableResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associateTransitGatewayRouteTable(_ request: AWSEC2AssociateTransitGatewayRouteTableRequest) async throws -> AWSEC2AssociateTransitGatewayRouteTableResultParameters
requestA container for the necessary parameters to execute the AssociateTransitGatewayRouteTable service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
This API action is currently in limited preview only. If you are interested in using this feature, contact your account manager.
Associates a branch network interface with a trunk network interface.
Before you create the association, run the create-network-interface command and set
--interface-typetotrunk. You must also create a network interface for each branch network interface that you want to associate with the trunk network interface.See
AWSEC2AssociateTrunkInterfaceRequest
See
AWSEC2AssociateTrunkInterfaceResult
Declaration
Objective-C
- (id)associateTrunkInterface: (nonnull AWSEC2AssociateTrunkInterfaceRequest *)request;Swift
func associateTrunkInterface(_ request: AWSEC2AssociateTrunkInterfaceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateTrunkInterface service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssociateTrunkInterfaceResult. -
This API action is currently in limited preview only. If you are interested in using this feature, contact your account manager.
Associates a branch network interface with a trunk network interface.
Before you create the association, run the create-network-interface command and set
--interface-typetotrunk. You must also create a network interface for each branch network interface that you want to associate with the trunk network interface.See
AWSEC2AssociateTrunkInterfaceRequest
See
AWSEC2AssociateTrunkInterfaceResult
Declaration
Objective-C
- (void) associateTrunkInterface: (nonnull AWSEC2AssociateTrunkInterfaceRequest *)request completionHandler: (void (^_Nullable)(AWSEC2AssociateTrunkInterfaceResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associateTrunkInterface(_ request: AWSEC2AssociateTrunkInterfaceRequest) async throws -> AWSEC2AssociateTrunkInterfaceResultParameters
requestA container for the necessary parameters to execute the AssociateTrunkInterface service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP). The IPv6 CIDR block size is fixed at /56.
You must specify one of the following in the request: an IPv4 CIDR block, an IPv6 pool, or an Amazon-provided IPv6 CIDR block.
For more information about associating CIDR blocks with your VPC and applicable restrictions, see VPC and subnet sizing in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2AssociateVpcCidrBlockRequest
See
AWSEC2AssociateVpcCidrBlockResult
Declaration
Objective-C
- (id)associateVpcCidrBlock: (nonnull AWSEC2AssociateVpcCidrBlockRequest *)request;Swift
func associateVpcCidrBlock(_ request: AWSEC2AssociateVpcCidrBlockRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AssociateVpcCidrBlock service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AssociateVpcCidrBlockResult. -
Associates a CIDR block with your VPC. You can associate a secondary IPv4 CIDR block, an Amazon-provided IPv6 CIDR block, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP). The IPv6 CIDR block size is fixed at /56.
You must specify one of the following in the request: an IPv4 CIDR block, an IPv6 pool, or an Amazon-provided IPv6 CIDR block.
For more information about associating CIDR blocks with your VPC and applicable restrictions, see VPC and subnet sizing in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2AssociateVpcCidrBlockRequest
See
AWSEC2AssociateVpcCidrBlockResult
Declaration
Objective-C
- (void)associateVpcCidrBlock: (nonnull AWSEC2AssociateVpcCidrBlockRequest *)request completionHandler: (void (^_Nullable)(AWSEC2AssociateVpcCidrBlockResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associateVpcCidrBlock(_ request: AWSEC2AssociateVpcCidrBlockRequest) async throws -> AWSEC2AssociateVpcCidrBlockResultParameters
requestA container for the necessary parameters to execute the AssociateVpcCidrBlock service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC’s security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You can only link an instance that’s in the
runningstate. An instance is automatically unlinked from a VPC when it’s stopped - you can link it to the VPC again when you restart it.After you’ve linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again.
Linking your instance to a VPC is sometimes referred to as attaching your instance.
See
AWSEC2AttachClassicLinkVpcRequest
See
AWSEC2AttachClassicLinkVpcResult
Declaration
Objective-C
- (id)attachClassicLinkVpc:(nonnull AWSEC2AttachClassicLinkVpcRequest *)request;Swift
func attachClassicLinkVpc(_ request: AWSEC2AttachClassicLinkVpcRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AttachClassicLinkVpc service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AttachClassicLinkVpcResult. -
Links an EC2-Classic instance to a ClassicLink-enabled VPC through one or more of the VPC’s security groups. You cannot link an EC2-Classic instance to more than one VPC at a time. You can only link an instance that’s in the
runningstate. An instance is automatically unlinked from a VPC when it’s stopped - you can link it to the VPC again when you restart it.After you’ve linked an instance, you cannot change the VPC security groups that are associated with it. To change the security groups, you must first unlink the instance, and then link it again.
Linking your instance to a VPC is sometimes referred to as attaching your instance.
See
AWSEC2AttachClassicLinkVpcRequest
See
AWSEC2AttachClassicLinkVpcResult
Declaration
Objective-C
- (void)attachClassicLinkVpc: (nonnull AWSEC2AttachClassicLinkVpcRequest *)request completionHandler: (void (^_Nullable)(AWSEC2AttachClassicLinkVpcResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func attachClassicLinkVpc(_ request: AWSEC2AttachClassicLinkVpcRequest) async throws -> AWSEC2AttachClassicLinkVpcResultParameters
requestA container for the necessary parameters to execute the AttachClassicLinkVpc service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.
See
AWSEC2AttachInternetGatewayRequest
Declaration
Objective-C
- (id)attachInternetGateway: (nonnull AWSEC2AttachInternetGatewayRequest *)request;Swift
func attachInternetGateway(_ request: AWSEC2AttachInternetGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AttachInternetGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Attaches an internet gateway or a virtual private gateway to a VPC, enabling connectivity between the internet and the VPC. For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.
See
AWSEC2AttachInternetGatewayRequest
Declaration
Objective-C
- (void)attachInternetGateway: (nonnull AWSEC2AttachInternetGatewayRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func attachInternetGateway(_ request: AWSEC2AttachInternetGatewayRequest) async throwsParameters
requestA container for the necessary parameters to execute the AttachInternetGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Attaches a network interface to an instance.
See
AWSEC2AttachNetworkInterfaceRequest
See
AWSEC2AttachNetworkInterfaceResult
Declaration
Objective-C
- (id)attachNetworkInterface: (nonnull AWSEC2AttachNetworkInterfaceRequest *)request;Swift
func attachNetworkInterface(_ request: AWSEC2AttachNetworkInterfaceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AttachNetworkInterface service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AttachNetworkInterfaceResult. -
Attaches a network interface to an instance.
See
AWSEC2AttachNetworkInterfaceRequest
See
AWSEC2AttachNetworkInterfaceResult
Declaration
Objective-C
- (void) attachNetworkInterface: (nonnull AWSEC2AttachNetworkInterfaceRequest *)request completionHandler: (void (^_Nullable)(AWSEC2AttachNetworkInterfaceResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func attachNetworkInterface(_ request: AWSEC2AttachNetworkInterfaceRequest) async throws -> AWSEC2AttachNetworkInterfaceResultParameters
requestA container for the necessary parameters to execute the AttachNetworkInterface service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.
Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
After you attach an EBS volume, you must make it available. For more information, see Make an EBS volume available for use.
If a volume has an Amazon Web Services Marketplace product code:
The volume can be attached only to a stopped instance.
Amazon Web Services Marketplace product codes are copied from the volume to the instance.
You must be subscribed to the product.
The instance type and operating system of the instance must support the product. For example, you can’t detach a volume from a Windows instance and attach it to a Linux instance.
For more information, see Attach an Amazon EBS volume to an instance in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2AttachVolumeRequest
See
AWSEC2VolumeAttachment
Declaration
Objective-C
- (id)attachVolume:(nonnull AWSEC2AttachVolumeRequest *)request;Swift
func attachVolume(_ request: AWSEC2AttachVolumeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AttachVolume service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2VolumeAttachment. -
Attaches an EBS volume to a running or stopped instance and exposes it to the instance with the specified device name.
Encrypted EBS volumes must be attached to instances that support Amazon EBS encryption. For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
After you attach an EBS volume, you must make it available. For more information, see Make an EBS volume available for use.
If a volume has an Amazon Web Services Marketplace product code:
The volume can be attached only to a stopped instance.
Amazon Web Services Marketplace product codes are copied from the volume to the instance.
You must be subscribed to the product.
The instance type and operating system of the instance must support the product. For example, you can’t detach a volume from a Windows instance and attach it to a Linux instance.
For more information, see Attach an Amazon EBS volume to an instance in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2AttachVolumeRequest
See
AWSEC2VolumeAttachment
Declaration
Objective-C
- (void)attachVolume:(nonnull AWSEC2AttachVolumeRequest *)request completionHandler:(void (^_Nullable)(AWSEC2VolumeAttachment *_Nullable, NSError *_Nullable))completionHandler;Swift
func attachVolume(_ request: AWSEC2AttachVolumeRequest) async throws -> AWSEC2VolumeAttachmentParameters
requestA container for the necessary parameters to execute the AttachVolume service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2AttachVpnGatewayRequest
See
AWSEC2AttachVpnGatewayResult
Declaration
Objective-C
- (id)attachVpnGateway:(nonnull AWSEC2AttachVpnGatewayRequest *)request;Swift
func attachVpnGateway(_ request: AWSEC2AttachVpnGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AttachVpnGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AttachVpnGatewayResult. -
Attaches a virtual private gateway to a VPC. You can attach one virtual private gateway to one VPC at a time.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2AttachVpnGatewayRequest
See
AWSEC2AttachVpnGatewayResult
Declaration
Objective-C
- (void)attachVpnGateway:(nonnull AWSEC2AttachVpnGatewayRequest *)request completionHandler: (void (^_Nullable)(AWSEC2AttachVpnGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func attachVpnGateway(_ request: AWSEC2AttachVpnGatewayRequest) async throws -> AWSEC2AttachVpnGatewayResultParameters
requestA container for the necessary parameters to execute the AttachVpnGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Adds an ingress authorization rule to a Client VPN endpoint. Ingress authorization rules act as firewall rules that grant access to networks. You must configure ingress authorization rules to enable clients to access resources in Amazon Web Services or on-premises networks.
See
AWSEC2AuthorizeClientVpnIngressRequest
See
AWSEC2AuthorizeClientVpnIngressResult
Declaration
Objective-C
- (id)authorizeClientVpnIngress: (nonnull AWSEC2AuthorizeClientVpnIngressRequest *)request;Swift
func authorizeClientVpnIngress(_ request: AWSEC2AuthorizeClientVpnIngressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AuthorizeClientVpnIngress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AuthorizeClientVpnIngressResult. -
Adds an ingress authorization rule to a Client VPN endpoint. Ingress authorization rules act as firewall rules that grant access to networks. You must configure ingress authorization rules to enable clients to access resources in Amazon Web Services or on-premises networks.
See
AWSEC2AuthorizeClientVpnIngressRequest
See
AWSEC2AuthorizeClientVpnIngressResult
Declaration
Objective-C
- (void)authorizeClientVpnIngress: (nonnull AWSEC2AuthorizeClientVpnIngressRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AuthorizeClientVpnIngressResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func authorizeClientVpnIngress(_ request: AWSEC2AuthorizeClientVpnIngressRequest) async throws -> AWSEC2AuthorizeClientVpnIngressResultParameters
requestA container for the necessary parameters to execute the AuthorizeClientVpnIngress service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
[VPC only] Adds the specified outbound (egress) rules to a security group for use with a VPC.
An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 CIDR address ranges, or to the instances that are associated with the specified source security groups.
You specify a protocol for each rule (for example, TCP). For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 for the type or code to mean all types or all codes.
Rule changes are propagated to affected instances as quickly as possible. However, a small delay might occur.
For information about VPC security group quotas, see Amazon VPC quotas.
See
AWSEC2AuthorizeSecurityGroupEgressRequest
See
AWSEC2AuthorizeSecurityGroupEgressResult
Declaration
Objective-C
- (id)authorizeSecurityGroupEgress: (nonnull AWSEC2AuthorizeSecurityGroupEgressRequest *)request;Swift
func authorizeSecurityGroupEgress(_ request: AWSEC2AuthorizeSecurityGroupEgressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AuthorizeSecurityGroupEgress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AuthorizeSecurityGroupEgressResult. -
[VPC only] Adds the specified outbound (egress) rules to a security group for use with a VPC.
An outbound rule permits instances to send traffic to the specified IPv4 or IPv6 CIDR address ranges, or to the instances that are associated with the specified source security groups.
You specify a protocol for each rule (for example, TCP). For the TCP and UDP protocols, you must also specify the destination port or port range. For the ICMP protocol, you must also specify the ICMP type and code. You can use -1 for the type or code to mean all types or all codes.
Rule changes are propagated to affected instances as quickly as possible. However, a small delay might occur.
For information about VPC security group quotas, see Amazon VPC quotas.
See
AWSEC2AuthorizeSecurityGroupEgressRequest
See
AWSEC2AuthorizeSecurityGroupEgressResult
Declaration
Objective-C
- (void)authorizeSecurityGroupEgress: (nonnull AWSEC2AuthorizeSecurityGroupEgressRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AuthorizeSecurityGroupEgressResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func authorizeSecurityGroupEgress(_ request: AWSEC2AuthorizeSecurityGroupEgressRequest) async throws -> AWSEC2AuthorizeSecurityGroupEgressResultParameters
requestA container for the necessary parameters to execute the AuthorizeSecurityGroupEgress service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Adds the specified inbound (ingress) rules to a security group.
An inbound rule permits instances to receive traffic from the specified IPv4 or IPv6 CIDR address range, or from the instances that are associated with the specified destination security groups.
You specify a protocol for each rule (for example, TCP). For TCP and UDP, you must also specify the destination port or port range. For ICMP/ICMPv6, you must also specify the ICMP/ICMPv6 type and code. You can use -1 to mean all types or all codes.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
For more information about VPC security group quotas, see Amazon VPC quotas.
See
AWSEC2AuthorizeSecurityGroupIngressRequest
See
AWSEC2AuthorizeSecurityGroupIngressResult
Declaration
Objective-C
- (id)authorizeSecurityGroupIngress: (nonnull AWSEC2AuthorizeSecurityGroupIngressRequest *)request;Swift
func authorizeSecurityGroupIngress(_ request: AWSEC2AuthorizeSecurityGroupIngressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the AuthorizeSecurityGroupIngress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2AuthorizeSecurityGroupIngressResult. -
Adds the specified inbound (ingress) rules to a security group.
An inbound rule permits instances to receive traffic from the specified IPv4 or IPv6 CIDR address range, or from the instances that are associated with the specified destination security groups.
You specify a protocol for each rule (for example, TCP). For TCP and UDP, you must also specify the destination port or port range. For ICMP/ICMPv6, you must also specify the ICMP/ICMPv6 type and code. You can use -1 to mean all types or all codes.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
For more information about VPC security group quotas, see Amazon VPC quotas.
See
AWSEC2AuthorizeSecurityGroupIngressRequest
See
AWSEC2AuthorizeSecurityGroupIngressResult
Declaration
Objective-C
- (void) authorizeSecurityGroupIngress: (nonnull AWSEC2AuthorizeSecurityGroupIngressRequest *)request completionHandler: (void (^_Nullable)( AWSEC2AuthorizeSecurityGroupIngressResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func authorizeSecurityGroupIngress(_ request: AWSEC2AuthorizeSecurityGroupIngressRequest) async throws -> AWSEC2AuthorizeSecurityGroupIngressResultParameters
requestA container for the necessary parameters to execute the AuthorizeSecurityGroupIngress service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Bundles an Amazon instance store-backed Windows instance.
During bundling, only the root device volume (C:) is bundled. Data on other instance store volumes is not preserved.
This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.
See
AWSEC2BundleInstanceRequest
See
AWSEC2BundleInstanceResult
Declaration
Objective-C
- (id)bundleInstance:(nonnull AWSEC2BundleInstanceRequest *)request;Swift
func bundleInstance(_ request: AWSEC2BundleInstanceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the BundleInstance service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2BundleInstanceResult. -
Bundles an Amazon instance store-backed Windows instance.
During bundling, only the root device volume (C:) is bundled. Data on other instance store volumes is not preserved.
This action is not applicable for Linux/Unix instances or Windows instances that are backed by Amazon EBS.
See
AWSEC2BundleInstanceRequest
See
AWSEC2BundleInstanceResult
Declaration
Objective-C
- (void)bundleInstance:(nonnull AWSEC2BundleInstanceRequest *)request completionHandler:(void (^_Nullable)(AWSEC2BundleInstanceResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func bundleInstance(_ request: AWSEC2BundleInstanceRequest) async throws -> AWSEC2BundleInstanceResultParameters
requestA container for the necessary parameters to execute the BundleInstance service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Cancels a bundling operation for an instance store-backed Windows instance.
See
AWSEC2CancelBundleTaskRequest
See
AWSEC2CancelBundleTaskResult
Declaration
Objective-C
- (id)cancelBundleTask:(nonnull AWSEC2CancelBundleTaskRequest *)request;Swift
func cancelBundleTask(_ request: AWSEC2CancelBundleTaskRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CancelBundleTask service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CancelBundleTaskResult. -
Cancels a bundling operation for an instance store-backed Windows instance.
See
AWSEC2CancelBundleTaskRequest
See
AWSEC2CancelBundleTaskResult
Declaration
Objective-C
- (void)cancelBundleTask:(nonnull AWSEC2CancelBundleTaskRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CancelBundleTaskResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func cancelBundleTask(_ request: AWSEC2CancelBundleTaskRequest) async throws -> AWSEC2CancelBundleTaskResultParameters
requestA container for the necessary parameters to execute the CancelBundleTask service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation’s state to
cancelled.Instances running in the reserved capacity continue running until you stop them. Stopped instances that target the Capacity Reservation can no longer launch. Modify these instances to either target a different Capacity Reservation, launch On-Demand Instance capacity, or run in any open Capacity Reservation that has matching attributes and sufficient capacity.
See
AWSEC2CancelCapacityReservationRequest
See
AWSEC2CancelCapacityReservationResult
Declaration
Objective-C
- (id)cancelCapacityReservation: (nonnull AWSEC2CancelCapacityReservationRequest *)request;Swift
func cancelCapacityReservation(_ request: AWSEC2CancelCapacityReservationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CancelCapacityReservation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CancelCapacityReservationResult. -
Cancels the specified Capacity Reservation, releases the reserved capacity, and changes the Capacity Reservation’s state to
cancelled.Instances running in the reserved capacity continue running until you stop them. Stopped instances that target the Capacity Reservation can no longer launch. Modify these instances to either target a different Capacity Reservation, launch On-Demand Instance capacity, or run in any open Capacity Reservation that has matching attributes and sufficient capacity.
See
AWSEC2CancelCapacityReservationRequest
See
AWSEC2CancelCapacityReservationResult
Declaration
Objective-C
- (void)cancelCapacityReservation: (nonnull AWSEC2CancelCapacityReservationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CancelCapacityReservationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func cancelCapacityReservation(_ request: AWSEC2CancelCapacityReservationRequest) async throws -> AWSEC2CancelCapacityReservationResultParameters
requestA container for the necessary parameters to execute the CancelCapacityReservation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Cancels one or more Capacity Reservation Fleets. When you cancel a Capacity Reservation Fleet, the following happens:
The Capacity Reservation Fleet’s status changes to
cancelled.The individual Capacity Reservations in the Fleet are cancelled. Instances running in the Capacity Reservations at the time of cancelling the Fleet continue to run in shared capacity.
The Fleet stops creating new Capacity Reservations.
See
AWSEC2CancelCapacityReservationFleetsRequest
See
AWSEC2CancelCapacityReservationFleetsResult
Declaration
Objective-C
- (id)cancelCapacityReservationFleets: (nonnull AWSEC2CancelCapacityReservationFleetsRequest *)request;Swift
func cancelCapacityReservationFleets(_ request: AWSEC2CancelCapacityReservationFleetsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CancelCapacityReservationFleets service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CancelCapacityReservationFleetsResult. -
Cancels one or more Capacity Reservation Fleets. When you cancel a Capacity Reservation Fleet, the following happens:
The Capacity Reservation Fleet’s status changes to
cancelled.The individual Capacity Reservations in the Fleet are cancelled. Instances running in the Capacity Reservations at the time of cancelling the Fleet continue to run in shared capacity.
The Fleet stops creating new Capacity Reservations.
See
AWSEC2CancelCapacityReservationFleetsRequest
See
AWSEC2CancelCapacityReservationFleetsResult
Declaration
Objective-C
- (void)cancelCapacityReservationFleets: (nonnull AWSEC2CancelCapacityReservationFleetsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CancelCapacityReservationFleetsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func cancelCapacityReservationFleets(_ request: AWSEC2CancelCapacityReservationFleetsRequest) async throws -> AWSEC2CancelCapacityReservationFleetsResultParameters
requestA container for the necessary parameters to execute the CancelCapacityReservationFleets service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.
For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.
See
AWSEC2CancelConversionRequest
Declaration
Objective-C
- (id)cancelConversionTask:(nonnull AWSEC2CancelConversionRequest *)request;Swift
func cancelConversionTask(_ request: AWSEC2CancelConversionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CancelConversionTask service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Cancels an active conversion task. The task can be the import of an instance or volume. The action removes all artifacts of the conversion, including a partially uploaded volume or instance. If the conversion is complete or is in the process of transferring the final disk image, the command fails and returns an exception.
For more information, see Importing a Virtual Machine Using the Amazon EC2 CLI.
See
AWSEC2CancelConversionRequest
Declaration
Objective-C
- (void)cancelConversionTask:(nonnull AWSEC2CancelConversionRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func cancelConversionTask(_ request: AWSEC2CancelConversionRequest) async throwsParameters
requestA container for the necessary parameters to execute the CancelConversionTask service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.
See
AWSEC2CancelExportTaskRequest
Declaration
Objective-C
- (id)cancelExportTask:(nonnull AWSEC2CancelExportTaskRequest *)request;Swift
func cancelExportTask(_ request: AWSEC2CancelExportTaskRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CancelExportTask service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Cancels an active export task. The request removes all artifacts of the export, including any partially-created Amazon S3 objects. If the export task is complete or is in the process of transferring the final disk image, the command fails and returns an error.
See
AWSEC2CancelExportTaskRequest
Declaration
Objective-C
- (void)cancelExportTask:(nonnull AWSEC2CancelExportTaskRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func cancelExportTask(_ request: AWSEC2CancelExportTaskRequest) async throwsParameters
requestA container for the necessary parameters to execute the CancelExportTask service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Cancels an in-process import virtual machine or import snapshot task.
See
AWSEC2CancelImportTaskRequest
See
AWSEC2CancelImportTaskResult
Declaration
Objective-C
- (id)cancelImportTask:(nonnull AWSEC2CancelImportTaskRequest *)request;Swift
func cancelImportTask(_ request: AWSEC2CancelImportTaskRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CancelImportTask service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CancelImportTaskResult. -
Cancels an in-process import virtual machine or import snapshot task.
See
AWSEC2CancelImportTaskRequest
See
AWSEC2CancelImportTaskResult
Declaration
Objective-C
- (void)cancelImportTask:(nonnull AWSEC2CancelImportTaskRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CancelImportTaskResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func cancelImportTask(_ request: AWSEC2CancelImportTaskRequest) async throws -> AWSEC2CancelImportTaskResultParameters
requestA container for the necessary parameters to execute the CancelImportTask service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.
For more information, see Reserved Instance Marketplace in the Amazon EC2 User Guide.
See
AWSEC2CancelReservedInstancesListingRequest
See
AWSEC2CancelReservedInstancesListingResult
Declaration
Objective-C
- (id)cancelReservedInstancesListing: (nonnull AWSEC2CancelReservedInstancesListingRequest *)request;Swift
func cancelReservedInstancesListing(_ request: AWSEC2CancelReservedInstancesListingRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CancelReservedInstancesListing service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CancelReservedInstancesListingResult. -
Cancels the specified Reserved Instance listing in the Reserved Instance Marketplace.
For more information, see Reserved Instance Marketplace in the Amazon EC2 User Guide.
See
AWSEC2CancelReservedInstancesListingRequest
See
AWSEC2CancelReservedInstancesListingResult
Declaration
Objective-C
- (void) cancelReservedInstancesListing: (nonnull AWSEC2CancelReservedInstancesListingRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CancelReservedInstancesListingResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func cancelReservedInstancesListing(_ request: AWSEC2CancelReservedInstancesListingRequest) async throws -> AWSEC2CancelReservedInstancesListingResultParameters
requestA container for the necessary parameters to execute the CancelReservedInstancesListing service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Cancels the specified Spot Fleet requests.
After you cancel a Spot Fleet request, the Spot Fleet launches no new Spot Instances. You must specify whether the Spot Fleet should also terminate its Spot Instances. If you terminate the instances, the Spot Fleet request enters the
cancelled_terminatingstate. Otherwise, the Spot Fleet request enters thecancelled_runningstate and the instances continue to run until they are interrupted or you terminate them manually.See
AWSEC2CancelSpotFleetRequestsRequest
See
AWSEC2CancelSpotFleetRequestsResponse
Declaration
Objective-C
- (id)cancelSpotFleetRequests: (nonnull AWSEC2CancelSpotFleetRequestsRequest *)request;Swift
func cancelSpotFleetRequests(_ request: AWSEC2CancelSpotFleetRequestsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CancelSpotFleetRequests service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CancelSpotFleetRequestsResponse. -
Cancels the specified Spot Fleet requests.
After you cancel a Spot Fleet request, the Spot Fleet launches no new Spot Instances. You must specify whether the Spot Fleet should also terminate its Spot Instances. If you terminate the instances, the Spot Fleet request enters the
cancelled_terminatingstate. Otherwise, the Spot Fleet request enters thecancelled_runningstate and the instances continue to run until they are interrupted or you terminate them manually.See
AWSEC2CancelSpotFleetRequestsRequest
See
AWSEC2CancelSpotFleetRequestsResponse
Declaration
Objective-C
- (void)cancelSpotFleetRequests: (nonnull AWSEC2CancelSpotFleetRequestsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CancelSpotFleetRequestsResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func cancelSpotFleetRequests(_ request: AWSEC2CancelSpotFleetRequestsRequest) async throws -> AWSEC2CancelSpotFleetRequestsResponseParameters
requestA container for the necessary parameters to execute the CancelSpotFleetRequests service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Cancels one or more Spot Instance requests.
Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.
See
AWSEC2CancelSpotInstanceRequestsRequest
See
AWSEC2CancelSpotInstanceRequestsResult
Declaration
Objective-C
- (id)cancelSpotInstanceRequests: (nonnull AWSEC2CancelSpotInstanceRequestsRequest *)request;Swift
func cancelSpotInstanceRequests(_ request: AWSEC2CancelSpotInstanceRequestsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CancelSpotInstanceRequests service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CancelSpotInstanceRequestsResult. -
Cancels one or more Spot Instance requests.
Canceling a Spot Instance request does not terminate running Spot Instances associated with the request.
See
AWSEC2CancelSpotInstanceRequestsRequest
See
AWSEC2CancelSpotInstanceRequestsResult
Declaration
Objective-C
- (void)cancelSpotInstanceRequests: (nonnull AWSEC2CancelSpotInstanceRequestsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CancelSpotInstanceRequestsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func cancelSpotInstanceRequests(_ request: AWSEC2CancelSpotInstanceRequestsRequest) async throws -> AWSEC2CancelSpotInstanceRequestsResultParameters
requestA container for the necessary parameters to execute the CancelSpotInstanceRequests service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner must verify whether another user’s instance is eligible for support.
See
AWSEC2ConfirmProductInstanceRequest
See
AWSEC2ConfirmProductInstanceResult
Declaration
Objective-C
- (id)confirmProductInstance: (nonnull AWSEC2ConfirmProductInstanceRequest *)request;Swift
func confirmProductInstance(_ request: AWSEC2ConfirmProductInstanceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ConfirmProductInstance service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ConfirmProductInstanceResult. -
Determines whether a product code is associated with an instance. This action can only be used by the owner of the product code. It is useful when a product code owner must verify whether another user’s instance is eligible for support.
See
AWSEC2ConfirmProductInstanceRequest
See
AWSEC2ConfirmProductInstanceResult
Declaration
Objective-C
- (void) confirmProductInstance: (nonnull AWSEC2ConfirmProductInstanceRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ConfirmProductInstanceResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func confirmProductInstance(_ request: AWSEC2ConfirmProductInstanceRequest) async throws -> AWSEC2ConfirmProductInstanceResultParameters
requestA container for the necessary parameters to execute the ConfirmProductInstance service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Copies the specified Amazon FPGA Image (AFI) to the current Region.
See
AWSEC2ReplicateFpgaImageRequest
See
AWSEC2ReplicateFpgaImageResult
Declaration
Objective-C
- (id)replicateFpgaImage:(nonnull AWSEC2ReplicateFpgaImageRequest *)request;Swift
func replicateFpgaImage(_ request: AWSEC2ReplicateFpgaImageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CopyFpgaImage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ReplicateFpgaImageResult. -
Copies the specified Amazon FPGA Image (AFI) to the current Region.
See
AWSEC2ReplicateFpgaImageRequest
See
AWSEC2ReplicateFpgaImageResult
Declaration
Objective-C
- (void)replicateFpgaImage:(nonnull AWSEC2ReplicateFpgaImageRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ReplicateFpgaImageResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func replicateFpgaImage(_ request: AWSEC2ReplicateFpgaImageRequest) async throws -> AWSEC2ReplicateFpgaImageResultParameters
requestA container for the necessary parameters to execute the CopyFpgaImage service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Initiates the copy of an AMI. You can copy an AMI from one Region to another, or from a Region to an Outpost. You can’t copy an AMI from an Outpost to a Region, from one Outpost to another, or within the same Outpost. To copy an AMI to another partition, see CreateStoreImageTask.
To copy an AMI from one Region to another, specify the source Region using the SourceRegion parameter, and specify the destination Region using its endpoint. Copies of encrypted backing snapshots for the AMI are encrypted. Copies of unencrypted backing snapshots remain unencrypted, unless you set
Encryptedduring the copy operation. You cannot create an unencrypted copy of an encrypted backing snapshot.To copy an AMI from a Region to an Outpost, specify the source Region using the SourceRegion parameter, and specify the ARN of the destination Outpost using DestinationOutpostArn. Backing snapshots copied to an Outpost are encrypted by default using the default encryption key for the Region, or a different key that you specify in the request using KmsKeyId. Outposts do not support unencrypted snapshots. For more information, Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.
For more information about the prerequisites and limits when copying an AMI, see Copying an AMI in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ReplicateImageRequest
See
AWSEC2ReplicateImageResult
Declaration
Objective-C
- (id)replicateImage:(nonnull AWSEC2ReplicateImageRequest *)request;Swift
func replicateImage(_ request: AWSEC2ReplicateImageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CopyImage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ReplicateImageResult. -
Initiates the copy of an AMI. You can copy an AMI from one Region to another, or from a Region to an Outpost. You can’t copy an AMI from an Outpost to a Region, from one Outpost to another, or within the same Outpost. To copy an AMI to another partition, see CreateStoreImageTask.
To copy an AMI from one Region to another, specify the source Region using the SourceRegion parameter, and specify the destination Region using its endpoint. Copies of encrypted backing snapshots for the AMI are encrypted. Copies of unencrypted backing snapshots remain unencrypted, unless you set
Encryptedduring the copy operation. You cannot create an unencrypted copy of an encrypted backing snapshot.To copy an AMI from a Region to an Outpost, specify the source Region using the SourceRegion parameter, and specify the ARN of the destination Outpost using DestinationOutpostArn. Backing snapshots copied to an Outpost are encrypted by default using the default encryption key for the Region, or a different key that you specify in the request using KmsKeyId. Outposts do not support unencrypted snapshots. For more information, Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.
For more information about the prerequisites and limits when copying an AMI, see Copying an AMI in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ReplicateImageRequest
See
AWSEC2ReplicateImageResult
Declaration
Objective-C
- (void)replicateImage:(nonnull AWSEC2ReplicateImageRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ReplicateImageResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func replicateImage(_ request: AWSEC2ReplicateImageRequest) async throws -> AWSEC2ReplicateImageResultParameters
requestA container for the necessary parameters to execute the CopyImage service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy a snapshot within the same Region, from one Region to another, or from a Region to an Outpost. You can’t copy a snapshot from an Outpost to a Region, from one Outpost to another, or within the same Outpost.
You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).
When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless you enable encryption for the snapshot copy operation. By default, encrypted snapshot copies use the default Key Management Service (KMS) KMS key; however, you can specify a different KMS key. To copy an encrypted snapshot that has been shared from another account, you must have permissions for the KMS key used to encrypt the snapshot.
Snapshots copied to an Outpost are encrypted by default using the default encryption key for the Region, or a different key that you specify in the request using KmsKeyId. Outposts do not support unencrypted snapshots. For more information, Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.
Snapshots created by copying another snapshot have an arbitrary volume ID that should not be used for any purpose.
For more information, see Copy an Amazon EBS snapshot in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ReplicateSnapshotRequest
See
AWSEC2ReplicateSnapshotResult
Declaration
Objective-C
- (id)replicateSnapshot:(nonnull AWSEC2ReplicateSnapshotRequest *)request;Swift
func replicateSnapshot(_ request: AWSEC2ReplicateSnapshotRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CopySnapshot service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ReplicateSnapshotResult. -
Copies a point-in-time snapshot of an EBS volume and stores it in Amazon S3. You can copy a snapshot within the same Region, from one Region to another, or from a Region to an Outpost. You can’t copy a snapshot from an Outpost to a Region, from one Outpost to another, or within the same Outpost.
You can use the snapshot to create EBS volumes or Amazon Machine Images (AMIs).
When copying snapshots to a Region, copies of encrypted EBS snapshots remain encrypted. Copies of unencrypted snapshots remain unencrypted, unless you enable encryption for the snapshot copy operation. By default, encrypted snapshot copies use the default Key Management Service (KMS) KMS key; however, you can specify a different KMS key. To copy an encrypted snapshot that has been shared from another account, you must have permissions for the KMS key used to encrypt the snapshot.
Snapshots copied to an Outpost are encrypted by default using the default encryption key for the Region, or a different key that you specify in the request using KmsKeyId. Outposts do not support unencrypted snapshots. For more information, Amazon EBS local snapshots on Outposts in the Amazon Elastic Compute Cloud User Guide.
Snapshots created by copying another snapshot have an arbitrary volume ID that should not be used for any purpose.
For more information, see Copy an Amazon EBS snapshot in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ReplicateSnapshotRequest
See
AWSEC2ReplicateSnapshotResult
Declaration
Objective-C
- (void)replicateSnapshot:(nonnull AWSEC2ReplicateSnapshotRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ReplicateSnapshotResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func replicateSnapshot(_ request: AWSEC2ReplicateSnapshotRequest) async throws -> AWSEC2ReplicateSnapshotResultParameters
requestA container for the necessary parameters to execute the CopySnapshot service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a new Capacity Reservation with the specified attributes.
Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. This gives you the flexibility to selectively add capacity reservations and still get the Regional RI discounts for that usage. By creating Capacity Reservations, you ensure that you always have access to Amazon EC2 capacity when you need it, for as long as you need it. For more information, see Capacity Reservations in the Amazon EC2 User Guide.
Your request to create a Capacity Reservation could fail if Amazon EC2 does not have sufficient capacity to fulfill the request. If your request fails due to Amazon EC2 capacity constraints, either try again at a later time, try in a different Availability Zone, or request a smaller capacity reservation. If your application is flexible across instance types and sizes, try to create a Capacity Reservation with different instance attributes.
Your request could also fail if the requested quantity exceeds your On-Demand Instance limit for the selected instance type. If your request fails due to limit constraints, increase your On-Demand Instance limit for the required instance type and try again. For more information about increasing your instance limits, see Amazon EC2 Service Quotas in the Amazon EC2 User Guide.
See
AWSEC2CreateCapacityReservationRequest
See
AWSEC2CreateCapacityReservationResult
Declaration
Objective-C
- (id)createCapacityReservation: (nonnull AWSEC2CreateCapacityReservationRequest *)request;Swift
func createCapacityReservation(_ request: AWSEC2CreateCapacityReservationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateCapacityReservation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateCapacityReservationResult. -
Creates a new Capacity Reservation with the specified attributes.
Capacity Reservations enable you to reserve capacity for your Amazon EC2 instances in a specific Availability Zone for any duration. This gives you the flexibility to selectively add capacity reservations and still get the Regional RI discounts for that usage. By creating Capacity Reservations, you ensure that you always have access to Amazon EC2 capacity when you need it, for as long as you need it. For more information, see Capacity Reservations in the Amazon EC2 User Guide.
Your request to create a Capacity Reservation could fail if Amazon EC2 does not have sufficient capacity to fulfill the request. If your request fails due to Amazon EC2 capacity constraints, either try again at a later time, try in a different Availability Zone, or request a smaller capacity reservation. If your application is flexible across instance types and sizes, try to create a Capacity Reservation with different instance attributes.
Your request could also fail if the requested quantity exceeds your On-Demand Instance limit for the selected instance type. If your request fails due to limit constraints, increase your On-Demand Instance limit for the required instance type and try again. For more information about increasing your instance limits, see Amazon EC2 Service Quotas in the Amazon EC2 User Guide.
See
AWSEC2CreateCapacityReservationRequest
See
AWSEC2CreateCapacityReservationResult
Declaration
Objective-C
- (void)createCapacityReservation: (nonnull AWSEC2CreateCapacityReservationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateCapacityReservationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createCapacityReservation(_ request: AWSEC2CreateCapacityReservationRequest) async throws -> AWSEC2CreateCapacityReservationResultParameters
requestA container for the necessary parameters to execute the CreateCapacityReservation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a Capacity Reservation Fleet. For more information, see Create a Capacity Reservation Fleet in the Amazon EC2 User Guide.
See
AWSEC2CreateCapacityReservationFleetRequest
See
AWSEC2CreateCapacityReservationFleetResult
Declaration
Objective-C
- (id)createCapacityReservationFleet: (nonnull AWSEC2CreateCapacityReservationFleetRequest *)request;Swift
func createCapacityReservationFleet(_ request: AWSEC2CreateCapacityReservationFleetRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateCapacityReservationFleet service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateCapacityReservationFleetResult. -
Creates a Capacity Reservation Fleet. For more information, see Create a Capacity Reservation Fleet in the Amazon EC2 User Guide.
See
AWSEC2CreateCapacityReservationFleetRequest
See
AWSEC2CreateCapacityReservationFleetResult
Declaration
Objective-C
- (void) createCapacityReservationFleet: (nonnull AWSEC2CreateCapacityReservationFleetRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateCapacityReservationFleetResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createCapacityReservationFleet(_ request: AWSEC2CreateCapacityReservationFleetRequest) async throws -> AWSEC2CreateCapacityReservationFleetResultParameters
requestA container for the necessary parameters to execute the CreateCapacityReservationFleet service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a carrier gateway. For more information about carrier gateways, see Carrier gateways in the Amazon Web Services Wavelength Developer Guide.
See
AWSEC2CreateCarrierGatewayRequest
See
AWSEC2CreateCarrierGatewayResult
Declaration
Objective-C
- (id)createCarrierGateway:(nonnull AWSEC2CreateCarrierGatewayRequest *)request;Swift
func createCarrierGateway(_ request: AWSEC2CreateCarrierGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateCarrierGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateCarrierGatewayResult. -
Creates a carrier gateway. For more information about carrier gateways, see Carrier gateways in the Amazon Web Services Wavelength Developer Guide.
See
AWSEC2CreateCarrierGatewayRequest
See
AWSEC2CreateCarrierGatewayResult
Declaration
Objective-C
- (void)createCarrierGateway: (nonnull AWSEC2CreateCarrierGatewayRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateCarrierGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createCarrierGateway(_ request: AWSEC2CreateCarrierGatewayRequest) async throws -> AWSEC2CreateCarrierGatewayResultParameters
requestA container for the necessary parameters to execute the CreateCarrierGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.
See
AWSEC2CreateClientVpnEndpointRequest
See
AWSEC2CreateClientVpnEndpointResult
Declaration
Objective-C
- (id)createClientVpnEndpoint: (nonnull AWSEC2CreateClientVpnEndpointRequest *)request;Swift
func createClientVpnEndpoint(_ request: AWSEC2CreateClientVpnEndpointRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateClientVpnEndpoint service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateClientVpnEndpointResult. -
Creates a Client VPN endpoint. A Client VPN endpoint is the resource you create and configure to enable and manage client VPN sessions. It is the destination endpoint at which all client VPN sessions are terminated.
See
AWSEC2CreateClientVpnEndpointRequest
See
AWSEC2CreateClientVpnEndpointResult
Declaration
Objective-C
- (void) createClientVpnEndpoint: (nonnull AWSEC2CreateClientVpnEndpointRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateClientVpnEndpointResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createClientVpnEndpoint(_ request: AWSEC2CreateClientVpnEndpointRequest) async throws -> AWSEC2CreateClientVpnEndpointResultParameters
requestA container for the necessary parameters to execute the CreateClientVpnEndpoint service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint has a route table that describes the available destination network routes. Each route in the route table specifies the path for traffic to specific resources or networks.
See
AWSEC2CreateClientVpnRouteRequest
See
AWSEC2CreateClientVpnRouteResult
Declaration
Objective-C
- (id)createClientVpnRoute:(nonnull AWSEC2CreateClientVpnRouteRequest *)request;Swift
func createClientVpnRoute(_ request: AWSEC2CreateClientVpnRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateClientVpnRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateClientVpnRouteResult. -
Adds a route to a network to a Client VPN endpoint. Each Client VPN endpoint has a route table that describes the available destination network routes. Each route in the route table specifies the path for traffic to specific resources or networks.
See
AWSEC2CreateClientVpnRouteRequest
See
AWSEC2CreateClientVpnRouteResult
Declaration
Objective-C
- (void)createClientVpnRoute: (nonnull AWSEC2CreateClientVpnRouteRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateClientVpnRouteResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createClientVpnRoute(_ request: AWSEC2CreateClientVpnRouteRequest) async throws -> AWSEC2CreateClientVpnRouteResultParameters
requestA container for the necessary parameters to execute the CreateClientVpnRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Provides information to Amazon Web Services about your VPN customer gateway device. The customer gateway is the appliance at your end of the VPN connection. (The device on the Amazon Web Services side of the VPN connection is the virtual private gateway.) You must provide the internet-routable IP address of the customer gateway’s external interface. The IP address must be static and can be behind a device performing network address translation (NAT).
For devices that use Border Gateway Protocol (BGP), you can also provide the device’s BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don’t have an ASN already, you can use a private ASN. For more information, see Customer gateway options for your Site-to-Site VPN connection in the Amazon Web Services Site-to-Site VPN User Guide.
To create more than one customer gateway with the same VPN type, IP address, and BGP ASN, specify a unique device name for each customer gateway. An identical request returns information about the existing customer gateway; it doesn’t create a new customer gateway.
See
AWSEC2CreateCustomerGatewayRequest
See
AWSEC2CreateCustomerGatewayResult
Declaration
Objective-C
- (id)createCustomerGateway: (nonnull AWSEC2CreateCustomerGatewayRequest *)request;Swift
func createCustomerGateway(_ request: AWSEC2CreateCustomerGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateCustomerGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateCustomerGatewayResult. -
Provides information to Amazon Web Services about your VPN customer gateway device. The customer gateway is the appliance at your end of the VPN connection. (The device on the Amazon Web Services side of the VPN connection is the virtual private gateway.) You must provide the internet-routable IP address of the customer gateway’s external interface. The IP address must be static and can be behind a device performing network address translation (NAT).
For devices that use Border Gateway Protocol (BGP), you can also provide the device’s BGP Autonomous System Number (ASN). You can use an existing ASN assigned to your network. If you don’t have an ASN already, you can use a private ASN. For more information, see Customer gateway options for your Site-to-Site VPN connection in the Amazon Web Services Site-to-Site VPN User Guide.
To create more than one customer gateway with the same VPN type, IP address, and BGP ASN, specify a unique device name for each customer gateway. An identical request returns information about the existing customer gateway; it doesn’t create a new customer gateway.
See
AWSEC2CreateCustomerGatewayRequest
See
AWSEC2CreateCustomerGatewayResult
Declaration
Objective-C
- (void)createCustomerGateway: (nonnull AWSEC2CreateCustomerGatewayRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateCustomerGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createCustomerGateway(_ request: AWSEC2CreateCustomerGatewayRequest) async throws -> AWSEC2CreateCustomerGatewayResultParameters
requestA container for the necessary parameters to execute the CreateCustomerGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a default subnet with a size
/20IPv4 CIDR block in the specified Availability Zone in your default VPC. You can have only one default subnet per Availability Zone. For more information, see Creating a default subnet in the Amazon Virtual Private Cloud User Guide.See
AWSEC2CreateDefaultSubnetRequest
See
AWSEC2CreateDefaultSubnetResult
Declaration
Objective-C
- (id)createDefaultSubnet:(nonnull AWSEC2CreateDefaultSubnetRequest *)request;Swift
func createDefaultSubnet(_ request: AWSEC2CreateDefaultSubnetRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateDefaultSubnet service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateDefaultSubnetResult. -
Creates a default subnet with a size
/20IPv4 CIDR block in the specified Availability Zone in your default VPC. You can have only one default subnet per Availability Zone. For more information, see Creating a default subnet in the Amazon Virtual Private Cloud User Guide.See
AWSEC2CreateDefaultSubnetRequest
See
AWSEC2CreateDefaultSubnetResult
Declaration
Objective-C
- (void)createDefaultSubnet:(nonnull AWSEC2CreateDefaultSubnetRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateDefaultSubnetResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createDefaultSubnet(_ request: AWSEC2CreateDefaultSubnetRequest) async throws -> AWSEC2CreateDefaultSubnetResultParameters
requestA container for the necessary parameters to execute the CreateDefaultSubnet service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a default VPC with a size
/16IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPC and default subnets in the Amazon Virtual Private Cloud User Guide. You cannot specify the components of the default VPC yourself.If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region.
If your account supports EC2-Classic, you cannot use this action to create a default VPC in a Region that supports EC2-Classic. If you want a default VPC in a Region that supports EC2-Classic, see “I really want a default VPC for my existing EC2 account. Is that possible?” in the Default VPCs FAQ.
See
AWSEC2CreateDefaultVpcRequest
See
AWSEC2CreateDefaultVpcResult
Declaration
Objective-C
- (id)createDefaultVpc:(nonnull AWSEC2CreateDefaultVpcRequest *)request;Swift
func createDefaultVpc(_ request: AWSEC2CreateDefaultVpcRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateDefaultVpc service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateDefaultVpcResult. -
Creates a default VPC with a size
/16IPv4 CIDR block and a default subnet in each Availability Zone. For more information about the components of a default VPC, see Default VPC and default subnets in the Amazon Virtual Private Cloud User Guide. You cannot specify the components of the default VPC yourself.If you deleted your previous default VPC, you can create a default VPC. You cannot have more than one default VPC per Region.
If your account supports EC2-Classic, you cannot use this action to create a default VPC in a Region that supports EC2-Classic. If you want a default VPC in a Region that supports EC2-Classic, see “I really want a default VPC for my existing EC2 account. Is that possible?” in the Default VPCs FAQ.
See
AWSEC2CreateDefaultVpcRequest
See
AWSEC2CreateDefaultVpcResult
Declaration
Objective-C
- (void)createDefaultVpc:(nonnull AWSEC2CreateDefaultVpcRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateDefaultVpcResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createDefaultVpc(_ request: AWSEC2CreateDefaultVpcRequest) async throws -> AWSEC2CreateDefaultVpcResultParameters
requestA container for the necessary parameters to execute the CreateDefaultVpc service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a set of DHCP options for your VPC. After creating the set, you must associate it with the VPC, causing all existing and new instances that you launch in the VPC to use this set of DHCP options. The following are the individual DHCP options you can specify. For more information about the options, see RFC 2132.
domain-name-servers- The IP addresses of up to four domain name servers, or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. If specifying more than one domain name server, specify the IP addresses in a single parameter, separated by commas. To have your instance receive a custom DNS hostname as specified indomain-name, you must setdomain-name-serversto a custom DNS server.domain-name- If you’re using AmazonProvidedDNS inus-east-1, specifyec2.internal. If you’re using AmazonProvidedDNS in another Region, specifyregion.compute.internal(for example,ap-northeast-1.compute.internal). Otherwise, specify a domain name (for example,ExampleCompany.com). This value is used to complete unqualified DNS hostnames. Important: Some Linux operating systems accept multiple domain names separated by spaces. However, Windows and other Linux operating systems treat the value as a single domain, which results in unexpected behavior. If your DHCP options set is associated with a VPC that has instances with multiple operating systems, specify only one domain name.ntp-servers- The IP addresses of up to four Network Time Protocol (NTP) servers.netbios-name-servers- The IP addresses of up to four NetBIOS name servers.netbios-node-type- The NetBIOS node type (1, 2, 4, or 8). We recommend that you specify 2 (broadcast and multicast are not currently supported). For more information about these node types, see RFC 2132.
Your VPC automatically starts out with a set of DHCP options that includes only a DNS server that we provide (AmazonProvidedDNS). If you create a set of options, and if your VPC has an internet gateway, make sure to set the
domain-name-serversoption either toAmazonProvidedDNSor to a domain name server of your choice. For more information, see DHCP options sets in the Amazon Virtual Private Cloud User Guide.See
AWSEC2CreateDhcpOptionsRequest
See
AWSEC2CreateDhcpOptionsResult
Declaration
Objective-C
- (id)createDhcpOptions:(nonnull AWSEC2CreateDhcpOptionsRequest *)request;Swift
func createDhcpOptions(_ request: AWSEC2CreateDhcpOptionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateDhcpOptions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateDhcpOptionsResult. -
Creates a set of DHCP options for your VPC. After creating the set, you must associate it with the VPC, causing all existing and new instances that you launch in the VPC to use this set of DHCP options. The following are the individual DHCP options you can specify. For more information about the options, see RFC 2132.
domain-name-servers- The IP addresses of up to four domain name servers, or AmazonProvidedDNS. The default DHCP option set specifies AmazonProvidedDNS. If specifying more than one domain name server, specify the IP addresses in a single parameter, separated by commas. To have your instance receive a custom DNS hostname as specified indomain-name, you must setdomain-name-serversto a custom DNS server.domain-name- If you’re using AmazonProvidedDNS inus-east-1, specifyec2.internal. If you’re using AmazonProvidedDNS in another Region, specifyregion.compute.internal(for example,ap-northeast-1.compute.internal). Otherwise, specify a domain name (for example,ExampleCompany.com). This value is used to complete unqualified DNS hostnames. Important: Some Linux operating systems accept multiple domain names separated by spaces. However, Windows and other Linux operating systems treat the value as a single domain, which results in unexpected behavior. If your DHCP options set is associated with a VPC that has instances with multiple operating systems, specify only one domain name.ntp-servers- The IP addresses of up to four Network Time Protocol (NTP) servers.netbios-name-servers- The IP addresses of up to four NetBIOS name servers.netbios-node-type- The NetBIOS node type (1, 2, 4, or 8). We recommend that you specify 2 (broadcast and multicast are not currently supported). For more information about these node types, see RFC 2132.
Your VPC automatically starts out with a set of DHCP options that includes only a DNS server that we provide (AmazonProvidedDNS). If you create a set of options, and if your VPC has an internet gateway, make sure to set the
domain-name-serversoption either toAmazonProvidedDNSor to a domain name server of your choice. For more information, see DHCP options sets in the Amazon Virtual Private Cloud User Guide.See
AWSEC2CreateDhcpOptionsRequest
See
AWSEC2CreateDhcpOptionsResult
Declaration
Objective-C
- (void)createDhcpOptions:(nonnull AWSEC2CreateDhcpOptionsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateDhcpOptionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createDhcpOptions(_ request: AWSEC2CreateDhcpOptionsRequest) async throws -> AWSEC2CreateDhcpOptionsResultParameters
requestA container for the necessary parameters to execute the CreateDhcpOptions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
[IPv6 only] Creates an egress-only internet gateway for your VPC. An egress-only internet gateway is used to enable outbound communication over IPv6 from instances in your VPC to the internet, and prevents hosts outside of your VPC from initiating an IPv6 connection with your instance.
See
AWSEC2CreateEgressOnlyInternetGatewayRequest
See
AWSEC2CreateEgressOnlyInternetGatewayResult
Declaration
Objective-C
- (id)createEgressOnlyInternetGateway: (nonnull AWSEC2CreateEgressOnlyInternetGatewayRequest *)request;Swift
func createEgressOnlyInternetGateway(_ request: AWSEC2CreateEgressOnlyInternetGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateEgressOnlyInternetGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateEgressOnlyInternetGatewayResult. -
[IPv6 only] Creates an egress-only internet gateway for your VPC. An egress-only internet gateway is used to enable outbound communication over IPv6 from instances in your VPC to the internet, and prevents hosts outside of your VPC from initiating an IPv6 connection with your instance.
See
AWSEC2CreateEgressOnlyInternetGatewayRequest
See
AWSEC2CreateEgressOnlyInternetGatewayResult
Declaration
Objective-C
- (void)createEgressOnlyInternetGateway: (nonnull AWSEC2CreateEgressOnlyInternetGatewayRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateEgressOnlyInternetGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createEgressOnlyInternetGateway(_ request: AWSEC2CreateEgressOnlyInternetGatewayRequest) async throws -> AWSEC2CreateEgressOnlyInternetGatewayResultParameters
requestA container for the necessary parameters to execute the CreateEgressOnlyInternetGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Launches an EC2 Fleet.
You can create a single EC2 Fleet that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.
For more information, see EC2 Fleet in the Amazon EC2 User Guide.
See
AWSEC2CreateFleetRequest
See
AWSEC2CreateFleetResult
Declaration
Objective-C
- (id)createFleet:(nonnull AWSEC2CreateFleetRequest *)request;Swift
func createFleet(_ request: AWSEC2CreateFleetRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateFleet service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateFleetResult. -
Launches an EC2 Fleet.
You can create a single EC2 Fleet that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.
For more information, see EC2 Fleet in the Amazon EC2 User Guide.
See
AWSEC2CreateFleetRequest
See
AWSEC2CreateFleetResult
Declaration
Objective-C
- (void)createFleet:(nonnull AWSEC2CreateFleetRequest *)request completionHandler:(void (^_Nullable)(AWSEC2CreateFleetResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createFleet(_ request: AWSEC2CreateFleetRequest) async throws -> AWSEC2CreateFleetResultParameters
requestA container for the necessary parameters to execute the CreateFleet service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC.
Flow log data for a monitored network interface is recorded as flow log records, which are log events consisting of fields that describe the traffic flow. For more information, see Flow log records in the Amazon Virtual Private Cloud User Guide.
When publishing to CloudWatch Logs, flow log records are published to a log group, and each network interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all of the monitored network interfaces are published to a single log file object that is stored in the specified bucket.
For more information, see VPC Flow Logs in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateFlowLogsRequest
See
AWSEC2CreateFlowLogsResult
Declaration
Objective-C
- (id)createFlowLogs:(nonnull AWSEC2CreateFlowLogsRequest *)request;Swift
func createFlowLogs(_ request: AWSEC2CreateFlowLogsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateFlowLogs service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateFlowLogsResult. -
Creates one or more flow logs to capture information about IP traffic for a specific network interface, subnet, or VPC.
Flow log data for a monitored network interface is recorded as flow log records, which are log events consisting of fields that describe the traffic flow. For more information, see Flow log records in the Amazon Virtual Private Cloud User Guide.
When publishing to CloudWatch Logs, flow log records are published to a log group, and each network interface has a unique log stream in the log group. When publishing to Amazon S3, flow log records for all of the monitored network interfaces are published to a single log file object that is stored in the specified bucket.
For more information, see VPC Flow Logs in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateFlowLogsRequest
See
AWSEC2CreateFlowLogsResult
Declaration
Objective-C
- (void)createFlowLogs:(nonnull AWSEC2CreateFlowLogsRequest *)request completionHandler:(void (^_Nullable)(AWSEC2CreateFlowLogsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createFlowLogs(_ request: AWSEC2CreateFlowLogsRequest) async throws -> AWSEC2CreateFlowLogsResultParameters
requestA container for the necessary parameters to execute the CreateFlowLogs service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).
The create operation is asynchronous. To verify that the AFI is ready for use, check the output logs.
An AFI contains the FPGA bitstream that is ready to download to an FPGA. You can securely deploy an AFI on multiple FPGA-accelerated instances. For more information, see the Amazon Web Services FPGA Hardware Development Kit.
See
AWSEC2CreateFpgaImageRequest
See
AWSEC2CreateFpgaImageResult
Declaration
Objective-C
- (id)createFpgaImage:(nonnull AWSEC2CreateFpgaImageRequest *)request;Swift
func createFpgaImage(_ request: AWSEC2CreateFpgaImageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateFpgaImage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateFpgaImageResult. -
Creates an Amazon FPGA Image (AFI) from the specified design checkpoint (DCP).
The create operation is asynchronous. To verify that the AFI is ready for use, check the output logs.
An AFI contains the FPGA bitstream that is ready to download to an FPGA. You can securely deploy an AFI on multiple FPGA-accelerated instances. For more information, see the Amazon Web Services FPGA Hardware Development Kit.
See
AWSEC2CreateFpgaImageRequest
See
AWSEC2CreateFpgaImageResult
Declaration
Objective-C
- (void)createFpgaImage:(nonnull AWSEC2CreateFpgaImageRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateFpgaImageResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createFpgaImage(_ request: AWSEC2CreateFpgaImageRequest) async throws -> AWSEC2CreateFpgaImageResultParameters
requestA container for the necessary parameters to execute the CreateFpgaImage service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.
By default, when Amazon EC2 creates the new AMI, it reboots the instance so that it can take snapshots of the attached volumes while data is at rest, in order to ensure a consistent state. You can set the
NoRebootparameter totruein the API request, or use the--no-rebootoption in the CLI to prevent Amazon EC2 from shutting down and rebooting the instance.If you choose to bypass the shutdown and reboot process by setting the
NoRebootparameter totruein the API request, or by using the--no-rebootoption in the CLI, we can’t guarantee the file system integrity of the created image.If you customized your instance with instance store volumes or Amazon EBS volumes in addition to the root device volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, the instance automatically launches with those additional volumes.
For more information, see Creating Amazon EBS-Backed Linux AMIs in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateImageRequest
See
AWSEC2CreateImageResult
Declaration
Objective-C
- (id)createImage:(nonnull AWSEC2CreateImageRequest *)request;Swift
func createImage(_ request: AWSEC2CreateImageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateImage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateImageResult. -
Creates an Amazon EBS-backed AMI from an Amazon EBS-backed instance that is either running or stopped.
By default, when Amazon EC2 creates the new AMI, it reboots the instance so that it can take snapshots of the attached volumes while data is at rest, in order to ensure a consistent state. You can set the
NoRebootparameter totruein the API request, or use the--no-rebootoption in the CLI to prevent Amazon EC2 from shutting down and rebooting the instance.If you choose to bypass the shutdown and reboot process by setting the
NoRebootparameter totruein the API request, or by using the--no-rebootoption in the CLI, we can’t guarantee the file system integrity of the created image.If you customized your instance with instance store volumes or Amazon EBS volumes in addition to the root device volume, the new AMI contains block device mapping information for those volumes. When you launch an instance from this new AMI, the instance automatically launches with those additional volumes.
For more information, see Creating Amazon EBS-Backed Linux AMIs in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateImageRequest
See
AWSEC2CreateImageResult
Declaration
Objective-C
- (void)createImage:(nonnull AWSEC2CreateImageRequest *)request completionHandler:(void (^_Nullable)(AWSEC2CreateImageResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createImage(_ request: AWSEC2CreateImageRequest) async throws -> AWSEC2CreateImageResultParameters
requestA container for the necessary parameters to execute the CreateImage service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates an event window in which scheduled events for the associated Amazon EC2 instances can run.
You can define either a set of time ranges or a cron expression when creating the event window, but not both. All event window times are in UTC.
You can create up to 200 event windows per Amazon Web Services Region.
When you create the event window, targets (instance IDs, Dedicated Host IDs, or tags) are not yet associated with it. To ensure that the event window can be used, you must associate one or more targets with it by using the AssociateInstanceEventWindow API.
Event windows are applicable only for scheduled events that stop, reboot, or terminate instances.
Event windows are not applicable for:
Expedited scheduled events and network maintenance events.
Unscheduled maintenance such as AutoRecovery and unplanned reboots.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2CreateInstanceEventWindowRequest
See
AWSEC2CreateInstanceEventWindowResult
Declaration
Objective-C
- (id)createInstanceEventWindow: (nonnull AWSEC2CreateInstanceEventWindowRequest *)request;Swift
func createInstanceEventWindow(_ request: AWSEC2CreateInstanceEventWindowRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateInstanceEventWindow service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateInstanceEventWindowResult. -
Creates an event window in which scheduled events for the associated Amazon EC2 instances can run.
You can define either a set of time ranges or a cron expression when creating the event window, but not both. All event window times are in UTC.
You can create up to 200 event windows per Amazon Web Services Region.
When you create the event window, targets (instance IDs, Dedicated Host IDs, or tags) are not yet associated with it. To ensure that the event window can be used, you must associate one or more targets with it by using the AssociateInstanceEventWindow API.
Event windows are applicable only for scheduled events that stop, reboot, or terminate instances.
Event windows are not applicable for:
Expedited scheduled events and network maintenance events.
Unscheduled maintenance such as AutoRecovery and unplanned reboots.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2CreateInstanceEventWindowRequest
See
AWSEC2CreateInstanceEventWindowResult
Declaration
Objective-C
- (void)createInstanceEventWindow: (nonnull AWSEC2CreateInstanceEventWindowRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateInstanceEventWindowResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createInstanceEventWindow(_ request: AWSEC2CreateInstanceEventWindowRequest) async throws -> AWSEC2CreateInstanceEventWindowResultParameters
requestA container for the necessary parameters to execute the CreateInstanceEventWindow service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Exports a running or stopped instance to an Amazon S3 bucket.
For information about the supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting an instance as a VM Using VM Import/Export in the VM Import/Export User Guide.
See
AWSEC2CreateInstanceExportTaskRequest
See
AWSEC2CreateInstanceExportTaskResult
Declaration
Objective-C
- (id)createInstanceExportTask: (nonnull AWSEC2CreateInstanceExportTaskRequest *)request;Swift
func createInstanceExportTask(_ request: AWSEC2CreateInstanceExportTaskRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateInstanceExportTask service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateInstanceExportTaskResult. -
Exports a running or stopped instance to an Amazon S3 bucket.
For information about the supported operating systems, image formats, and known limitations for the types of instances you can export, see Exporting an instance as a VM Using VM Import/Export in the VM Import/Export User Guide.
See
AWSEC2CreateInstanceExportTaskRequest
See
AWSEC2CreateInstanceExportTaskResult
Declaration
Objective-C
- (void)createInstanceExportTask: (nonnull AWSEC2CreateInstanceExportTaskRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateInstanceExportTaskResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createInstanceExportTask(_ request: AWSEC2CreateInstanceExportTaskRequest) async throws -> AWSEC2CreateInstanceExportTaskResultParameters
requestA container for the necessary parameters to execute the CreateInstanceExportTask service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates an internet gateway for use with a VPC. After creating the internet gateway, you attach it to a VPC using AttachInternetGateway.
For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateInternetGatewayRequest
See
AWSEC2CreateInternetGatewayResult
Declaration
Objective-C
- (id)createInternetGateway: (nonnull AWSEC2CreateInternetGatewayRequest *)request;Swift
func createInternetGateway(_ request: AWSEC2CreateInternetGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateInternetGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateInternetGatewayResult. -
Creates an internet gateway for use with a VPC. After creating the internet gateway, you attach it to a VPC using AttachInternetGateway.
For more information about your VPC and internet gateway, see the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateInternetGatewayRequest
See
AWSEC2CreateInternetGatewayResult
Declaration
Objective-C
- (void)createInternetGateway: (nonnull AWSEC2CreateInternetGatewayRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateInternetGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createInternetGateway(_ request: AWSEC2CreateInternetGatewayRequest) async throws -> AWSEC2CreateInternetGatewayResultParameters
requestA container for the necessary parameters to execute the CreateInternetGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Create an IPAM. Amazon VPC IP Address Manager (IPAM) is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across Amazon Web Services Regions and accounts throughout your Amazon Web Services Organization.
For more information, see Create an IPAM in the Amazon VPC IPAM User Guide.
See
AWSEC2CreateIpamRequest
See
AWSEC2CreateIpamResult
Declaration
Objective-C
- (id)createIpam:(nonnull AWSEC2CreateIpamRequest *)request;Swift
func createIpam(_ request: AWSEC2CreateIpamRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateIpam service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateIpamResult. -
Create an IPAM. Amazon VPC IP Address Manager (IPAM) is a VPC feature that you can use to automate your IP address management workflows including assigning, tracking, troubleshooting, and auditing IP addresses across Amazon Web Services Regions and accounts throughout your Amazon Web Services Organization.
For more information, see Create an IPAM in the Amazon VPC IPAM User Guide.
See
AWSEC2CreateIpamRequest
See
AWSEC2CreateIpamResult
Declaration
Objective-C
- (void)createIpam:(nonnull AWSEC2CreateIpamRequest *)request completionHandler:(void (^_Nullable)(AWSEC2CreateIpamResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createIpam(_ request: AWSEC2CreateIpamRequest) async throws -> AWSEC2CreateIpamResultParameters
requestA container for the necessary parameters to execute the CreateIpam service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In IPAM, a pool is a collection of contiguous IP addresses CIDRs. Pools enable you to organize your IP addresses according to your routing and security needs. For example, if you have separate routing and security needs for development and production applications, you can create a pool for each.
For more information, see Create a top-level pool in the Amazon VPC IPAM User Guide.
See
AWSEC2CreateIpamPoolRequest
See
AWSEC2CreateIpamPoolResult
Declaration
Objective-C
- (id)createIpamPool:(nonnull AWSEC2CreateIpamPoolRequest *)request;Swift
func createIpamPool(_ request: AWSEC2CreateIpamPoolRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateIpamPool service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateIpamPoolResult. -
Create an IP address pool for Amazon VPC IP Address Manager (IPAM). In IPAM, a pool is a collection of contiguous IP addresses CIDRs. Pools enable you to organize your IP addresses according to your routing and security needs. For example, if you have separate routing and security needs for development and production applications, you can create a pool for each.
For more information, see Create a top-level pool in the Amazon VPC IPAM User Guide.
See
AWSEC2CreateIpamPoolRequest
See
AWSEC2CreateIpamPoolResult
Declaration
Objective-C
- (void)createIpamPool:(nonnull AWSEC2CreateIpamPoolRequest *)request completionHandler:(void (^_Nullable)(AWSEC2CreateIpamPoolResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createIpamPool(_ request: AWSEC2CreateIpamPoolRequest) async throws -> AWSEC2CreateIpamPoolResultParameters
requestA container for the necessary parameters to execute the CreateIpamPool service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Create an IPAM scope. In IPAM, a scope is the highest-level container within IPAM. An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict.
For more information, see Add a scope in the Amazon VPC IPAM User Guide.
See
AWSEC2CreateIpamScopeRequest
See
AWSEC2CreateIpamScopeResult
Declaration
Objective-C
- (id)createIpamScope:(nonnull AWSEC2CreateIpamScopeRequest *)request;Swift
func createIpamScope(_ request: AWSEC2CreateIpamScopeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateIpamScope service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateIpamScopeResult. -
Create an IPAM scope. In IPAM, a scope is the highest-level container within IPAM. An IPAM contains two default scopes. Each scope represents the IP space for a single network. The private scope is intended for all private IP address space. The public scope is intended for all public IP address space. Scopes enable you to reuse IP addresses across multiple unconnected networks without causing IP address overlap or conflict.
For more information, see Add a scope in the Amazon VPC IPAM User Guide.
See
AWSEC2CreateIpamScopeRequest
See
AWSEC2CreateIpamScopeResult
Declaration
Objective-C
- (void)createIpamScope:(nonnull AWSEC2CreateIpamScopeRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateIpamScopeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createIpamScope(_ request: AWSEC2CreateIpamScopeRequest) async throws -> AWSEC2CreateIpamScopeResultParameters
requestA container for the necessary parameters to execute the CreateIpamScope service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the specified PEM or PPK format. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#1 private key or an unencrypted PPK formatted private key for use with PuTTY. If a key with the specified name already exists, Amazon EC2 returns an error.
The key pair returned to you is available only in the Amazon Web Services Region in which you create it. If you prefer, you can create your own key pair using a third-party tool and upload it to any Region using ImportKeyPair.
You can have up to 5,000 key pairs per Amazon Web Services Region.
For more information, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateKeyPairRequest
See
AWSEC2KeyPair
Declaration
Objective-C
- (id)createKeyPair:(nonnull AWSEC2CreateKeyPairRequest *)request;Swift
func createKeyPair(_ request: AWSEC2CreateKeyPairRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateKeyPair service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2KeyPair. -
Creates an ED25519 or 2048-bit RSA key pair with the specified name and in the specified PEM or PPK format. Amazon EC2 stores the public key and displays the private key for you to save to a file. The private key is returned as an unencrypted PEM encoded PKCS#1 private key or an unencrypted PPK formatted private key for use with PuTTY. If a key with the specified name already exists, Amazon EC2 returns an error.
The key pair returned to you is available only in the Amazon Web Services Region in which you create it. If you prefer, you can create your own key pair using a third-party tool and upload it to any Region using ImportKeyPair.
You can have up to 5,000 key pairs per Amazon Web Services Region.
For more information, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateKeyPairRequest
See
AWSEC2KeyPair
Declaration
Objective-C
- (void)createKeyPair:(nonnull AWSEC2CreateKeyPairRequest *)request completionHandler:(void (^_Nullable)(AWSEC2KeyPair *_Nullable, NSError *_Nullable))completionHandler;Swift
func createKeyPair(_ request: AWSEC2CreateKeyPairRequest) async throws -> AWSEC2KeyPairParameters
requestA container for the necessary parameters to execute the CreateKeyPair service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a launch template.
A launch template contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify a launch template instead of providing the launch parameters in the request. For more information, see Launching an instance from a launch template in the Amazon Elastic Compute Cloud User Guide.
If you want to clone an existing launch template as the basis for creating a new launch template, you can use the Amazon EC2 console. The API, SDKs, and CLI do not support cloning a template. For more information, see Create a launch template from an existing launch template in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateLaunchTemplateRequest
See
AWSEC2CreateLaunchTemplateResult
Declaration
Objective-C
- (id)createLaunchTemplate:(nonnull AWSEC2CreateLaunchTemplateRequest *)request;Swift
func createLaunchTemplate(_ request: AWSEC2CreateLaunchTemplateRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateLaunchTemplate service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateLaunchTemplateResult. -
Creates a launch template.
A launch template contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify a launch template instead of providing the launch parameters in the request. For more information, see Launching an instance from a launch template in the Amazon Elastic Compute Cloud User Guide.
If you want to clone an existing launch template as the basis for creating a new launch template, you can use the Amazon EC2 console. The API, SDKs, and CLI do not support cloning a template. For more information, see Create a launch template from an existing launch template in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateLaunchTemplateRequest
See
AWSEC2CreateLaunchTemplateResult
Declaration
Objective-C
- (void)createLaunchTemplate: (nonnull AWSEC2CreateLaunchTemplateRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateLaunchTemplateResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createLaunchTemplate(_ request: AWSEC2CreateLaunchTemplateRequest) async throws -> AWSEC2CreateLaunchTemplateResultParameters
requestA container for the necessary parameters to execute the CreateLaunchTemplate service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a new version for a launch template. You can specify an existing version of launch template from which to base the new version.
Launch template versions are numbered in the order in which they are created. You cannot specify, change, or replace the numbering of launch template versions.
For more information, see Managing launch template versionsin the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateLaunchTemplateVersionRequest
See
AWSEC2CreateLaunchTemplateVersionResult
Declaration
Objective-C
- (id)createLaunchTemplateVersion: (nonnull AWSEC2CreateLaunchTemplateVersionRequest *)request;Swift
func createLaunchTemplateVersion(_ request: AWSEC2CreateLaunchTemplateVersionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateLaunchTemplateVersion service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateLaunchTemplateVersionResult. -
Creates a new version for a launch template. You can specify an existing version of launch template from which to base the new version.
Launch template versions are numbered in the order in which they are created. You cannot specify, change, or replace the numbering of launch template versions.
For more information, see Managing launch template versionsin the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateLaunchTemplateVersionRequest
See
AWSEC2CreateLaunchTemplateVersionResult
Declaration
Objective-C
- (void)createLaunchTemplateVersion: (nonnull AWSEC2CreateLaunchTemplateVersionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateLaunchTemplateVersionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createLaunchTemplateVersion(_ request: AWSEC2CreateLaunchTemplateVersionRequest) async throws -> AWSEC2CreateLaunchTemplateVersionResultParameters
requestA container for the necessary parameters to execute the CreateLaunchTemplateVersion service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a static route for the specified local gateway route table.
See
AWSEC2CreateLocalGatewayRouteRequest
See
AWSEC2CreateLocalGatewayRouteResult
Declaration
Objective-C
- (id)createLocalGatewayRoute: (nonnull AWSEC2CreateLocalGatewayRouteRequest *)request;Swift
func createLocalGatewayRoute(_ request: AWSEC2CreateLocalGatewayRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateLocalGatewayRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateLocalGatewayRouteResult. -
Creates a static route for the specified local gateway route table.
See
AWSEC2CreateLocalGatewayRouteRequest
See
AWSEC2CreateLocalGatewayRouteResult
Declaration
Objective-C
- (void) createLocalGatewayRoute: (nonnull AWSEC2CreateLocalGatewayRouteRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateLocalGatewayRouteResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createLocalGatewayRoute(_ request: AWSEC2CreateLocalGatewayRouteRequest) async throws -> AWSEC2CreateLocalGatewayRouteResultParameters
requestA container for the necessary parameters to execute the CreateLocalGatewayRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Associates the specified VPC with the specified local gateway route table.
See
AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest
See
AWSEC2CreateLocalGatewayRouteTableVpcAssociationResult
Declaration
Objective-C
- (id)createLocalGatewayRouteTableVpcAssociation: (nonnull AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest *)request;Swift
func createLocalGatewayRouteTableVpcAssociation(_ request: AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateLocalGatewayRouteTableVpcAssociation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateLocalGatewayRouteTableVpcAssociationResult. -
Associates the specified VPC with the specified local gateway route table.
See
AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest
See
AWSEC2CreateLocalGatewayRouteTableVpcAssociationResult
Declaration
Objective-C
- (void) createLocalGatewayRouteTableVpcAssociation: (nonnull AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest *) request completionHandler: (void (^_Nullable)( AWSEC2CreateLocalGatewayRouteTableVpcAssociationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createLocalGatewayRouteTableVpcAssociation(_ request: AWSEC2CreateLocalGatewayRouteTableVpcAssociationRequest) async throws -> AWSEC2CreateLocalGatewayRouteTableVpcAssociationResultParameters
requestA container for the necessary parameters to execute the CreateLocalGatewayRouteTableVpcAssociation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a managed prefix list. You can specify one or more entries for the prefix list. Each entry consists of a CIDR block and an optional description.
See
AWSEC2CreateManagedPrefixListRequest
See
AWSEC2CreateManagedPrefixListResult
Declaration
Objective-C
- (id)createManagedPrefixList: (nonnull AWSEC2CreateManagedPrefixListRequest *)request;Swift
func createManagedPrefixList(_ request: AWSEC2CreateManagedPrefixListRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateManagedPrefixList service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateManagedPrefixListResult. -
Creates a managed prefix list. You can specify one or more entries for the prefix list. Each entry consists of a CIDR block and an optional description.
See
AWSEC2CreateManagedPrefixListRequest
See
AWSEC2CreateManagedPrefixListResult
Declaration
Objective-C
- (void) createManagedPrefixList: (nonnull AWSEC2CreateManagedPrefixListRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateManagedPrefixListResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createManagedPrefixList(_ request: AWSEC2CreateManagedPrefixListRequest) async throws -> AWSEC2CreateManagedPrefixListResultParameters
requestA container for the necessary parameters to execute the CreateManagedPrefixList service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a NAT gateway in the specified subnet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. You can create either a public NAT gateway or a private NAT gateway.
With a public NAT gateway, internet-bound traffic from a private subnet can be routed to the NAT gateway, so that instances in a private subnet can connect to the internet.
With a private NAT gateway, private communication is routed across VPCs and on-premises networks through a transit gateway or virtual private gateway. Common use cases include running large workloads behind a small pool of allowlisted IPv4 addresses, preserving private IPv4 addresses, and communicating between overlapping networks.
For more information, see NAT gateways in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateNatGatewayRequest
See
AWSEC2CreateNatGatewayResult
Declaration
Objective-C
- (id)createNatGateway:(nonnull AWSEC2CreateNatGatewayRequest *)request;Swift
func createNatGateway(_ request: AWSEC2CreateNatGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateNatGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateNatGatewayResult. -
Creates a NAT gateway in the specified subnet. This action creates a network interface in the specified subnet with a private IP address from the IP address range of the subnet. You can create either a public NAT gateway or a private NAT gateway.
With a public NAT gateway, internet-bound traffic from a private subnet can be routed to the NAT gateway, so that instances in a private subnet can connect to the internet.
With a private NAT gateway, private communication is routed across VPCs and on-premises networks through a transit gateway or virtual private gateway. Common use cases include running large workloads behind a small pool of allowlisted IPv4 addresses, preserving private IPv4 addresses, and communicating between overlapping networks.
For more information, see NAT gateways in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateNatGatewayRequest
See
AWSEC2CreateNatGatewayResult
Declaration
Objective-C
- (void)createNatGateway:(nonnull AWSEC2CreateNatGatewayRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateNatGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createNatGateway(_ request: AWSEC2CreateNatGatewayRequest) async throws -> AWSEC2CreateNatGatewayResultParameters
requestA container for the necessary parameters to execute the CreateNatGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC.
For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateNetworkAclRequest
See
AWSEC2CreateNetworkAclResult
Declaration
Objective-C
- (id)createNetworkAcl:(nonnull AWSEC2CreateNetworkAclRequest *)request;Swift
func createNetworkAcl(_ request: AWSEC2CreateNetworkAclRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateNetworkAcl service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateNetworkAclResult. -
Creates a network ACL in a VPC. Network ACLs provide an optional layer of security (in addition to security groups) for the instances in your VPC.
For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateNetworkAclRequest
See
AWSEC2CreateNetworkAclResult
Declaration
Objective-C
- (void)createNetworkAcl:(nonnull AWSEC2CreateNetworkAclRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateNetworkAclResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createNetworkAcl(_ request: AWSEC2CreateNetworkAclRequest) async throws -> AWSEC2CreateNetworkAclResultParameters
requestA container for the necessary parameters to execute the CreateNetworkAcl service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates an entry (a rule) in a network ACL with the specified rule number. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the ACL, we process the entries in the ACL according to the rule numbers, in ascending order. Each network ACL has a set of ingress rules and a separate set of egress rules.
We recommend that you leave room between the rule numbers (for example, 100, 110, 120, …), and not number them one right after the other (for example, 101, 102, 103, …). This makes it easier to add a rule between existing ones without having to renumber the rules.
After you add an entry, you can’t modify it; you must either replace it, or create an entry and delete the old one.
For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateNetworkAclEntryRequest
Declaration
Objective-C
- (id)createNetworkAclEntry: (nonnull AWSEC2CreateNetworkAclEntryRequest *)request;Swift
func createNetworkAclEntry(_ request: AWSEC2CreateNetworkAclEntryRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateNetworkAclEntry service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Creates an entry (a rule) in a network ACL with the specified rule number. Each network ACL has a set of numbered ingress rules and a separate set of numbered egress rules. When determining whether a packet should be allowed in or out of a subnet associated with the ACL, we process the entries in the ACL according to the rule numbers, in ascending order. Each network ACL has a set of ingress rules and a separate set of egress rules.
We recommend that you leave room between the rule numbers (for example, 100, 110, 120, …), and not number them one right after the other (for example, 101, 102, 103, …). This makes it easier to add a rule between existing ones without having to renumber the rules.
After you add an entry, you can’t modify it; you must either replace it, or create an entry and delete the old one.
For more information about network ACLs, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateNetworkAclEntryRequest
Declaration
Objective-C
- (void)createNetworkAclEntry: (nonnull AWSEC2CreateNetworkAclEntryRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func createNetworkAclEntry(_ request: AWSEC2CreateNetworkAclEntryRequest) async throwsParameters
requestA container for the necessary parameters to execute the CreateNetworkAclEntry service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a Network Access Scope.
Amazon Web Services Network Access Analyzer enables cloud networking and cloud operations teams to verify that their networks on Amazon Web Services conform to their network security and governance objectives. For more information, see the Amazon Web Services Network Access Analyzer Guide.
See
AWSEC2CreateNetworkInsightsAccessScopeRequest
See
AWSEC2CreateNetworkInsightsAccessScopeResult
Declaration
Objective-C
- (id)createNetworkInsightsAccessScope: (nonnull AWSEC2CreateNetworkInsightsAccessScopeRequest *)request;Swift
func createNetworkInsightsAccessScope(_ request: AWSEC2CreateNetworkInsightsAccessScopeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateNetworkInsightsAccessScope service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateNetworkInsightsAccessScopeResult. -
Creates a Network Access Scope.
Amazon Web Services Network Access Analyzer enables cloud networking and cloud operations teams to verify that their networks on Amazon Web Services conform to their network security and governance objectives. For more information, see the Amazon Web Services Network Access Analyzer Guide.
See
AWSEC2CreateNetworkInsightsAccessScopeRequest
See
AWSEC2CreateNetworkInsightsAccessScopeResult
Declaration
Objective-C
- (void)createNetworkInsightsAccessScope: (nonnull AWSEC2CreateNetworkInsightsAccessScopeRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateNetworkInsightsAccessScopeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createNetworkInsightsAccessScope(_ request: AWSEC2CreateNetworkInsightsAccessScopeRequest) async throws -> AWSEC2CreateNetworkInsightsAccessScopeResultParameters
requestA container for the necessary parameters to execute the CreateNetworkInsightsAccessScope service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a path to analyze for reachability.
Reachability Analyzer enables you to analyze and debug network reachability between two resources in your virtual private cloud (VPC). For more information, see What is Reachability Analyzer.
See
AWSEC2CreateNetworkInsightsPathRequest
See
AWSEC2CreateNetworkInsightsPathResult
Declaration
Objective-C
- (id)createNetworkInsightsPath: (nonnull AWSEC2CreateNetworkInsightsPathRequest *)request;Swift
func createNetworkInsightsPath(_ request: AWSEC2CreateNetworkInsightsPathRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateNetworkInsightsPath service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateNetworkInsightsPathResult. -
Creates a path to analyze for reachability.
Reachability Analyzer enables you to analyze and debug network reachability between two resources in your virtual private cloud (VPC). For more information, see What is Reachability Analyzer.
See
AWSEC2CreateNetworkInsightsPathRequest
See
AWSEC2CreateNetworkInsightsPathResult
Declaration
Objective-C
- (void)createNetworkInsightsPath: (nonnull AWSEC2CreateNetworkInsightsPathRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateNetworkInsightsPathResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createNetworkInsightsPath(_ request: AWSEC2CreateNetworkInsightsPathRequest) async throws -> AWSEC2CreateNetworkInsightsPathResultParameters
requestA container for the necessary parameters to execute the CreateNetworkInsightsPath service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a network interface in the specified subnet.
For more information about network interfaces, see Elastic Network Interfaces in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateNetworkInterfaceRequest
See
AWSEC2CreateNetworkInterfaceResult
Declaration
Objective-C
- (id)createNetworkInterface: (nonnull AWSEC2CreateNetworkInterfaceRequest *)request;Swift
func createNetworkInterface(_ request: AWSEC2CreateNetworkInterfaceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateNetworkInterface service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateNetworkInterfaceResult. -
Creates a network interface in the specified subnet.
For more information about network interfaces, see Elastic Network Interfaces in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateNetworkInterfaceRequest
See
AWSEC2CreateNetworkInterfaceResult
Declaration
Objective-C
- (void) createNetworkInterface: (nonnull AWSEC2CreateNetworkInterfaceRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateNetworkInterfaceResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createNetworkInterface(_ request: AWSEC2CreateNetworkInterfaceRequest) async throws -> AWSEC2CreateNetworkInterfaceResultParameters
requestA container for the necessary parameters to execute the CreateNetworkInterface service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account.
You can grant permission to a single Amazon Web Services account only, and only one account at a time.
See
AWSEC2CreateNetworkInterfacePermissionRequest
See
AWSEC2CreateNetworkInterfacePermissionResult
Declaration
Objective-C
- (id)createNetworkInterfacePermission: (nonnull AWSEC2CreateNetworkInterfacePermissionRequest *)request;Swift
func createNetworkInterfacePermission(_ request: AWSEC2CreateNetworkInterfacePermissionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateNetworkInterfacePermission service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateNetworkInterfacePermissionResult. -
Grants an Amazon Web Services-authorized account permission to attach the specified network interface to an instance in their account.
You can grant permission to a single Amazon Web Services account only, and only one account at a time.
See
AWSEC2CreateNetworkInterfacePermissionRequest
See
AWSEC2CreateNetworkInterfacePermissionResult
Declaration
Objective-C
- (void)createNetworkInterfacePermission: (nonnull AWSEC2CreateNetworkInterfacePermissionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateNetworkInterfacePermissionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createNetworkInterfacePermission(_ request: AWSEC2CreateNetworkInterfacePermissionRequest) async throws -> AWSEC2CreateNetworkInterfacePermissionResultParameters
requestA container for the necessary parameters to execute the CreateNetworkInterfacePermission service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a placement group in which to launch instances. The strategy of the placement group determines how the instances are organized within the group.
A
clusterplacement group is a logical grouping of instances within a single Availability Zone that benefit from low network latency, high network throughput. Aspreadplacement group places instances on distinct hardware. Apartitionplacement group places groups of instances in different partitions, where instances in one partition do not share the same hardware with instances in another partition.For more information, see Placement groups in the Amazon EC2 User Guide.
See
AWSEC2CreatePlacementGroupRequest
See
AWSEC2CreatePlacementGroupResult
Declaration
Objective-C
- (id)createPlacementGroup:(nonnull AWSEC2CreatePlacementGroupRequest *)request;Swift
func createPlacementGroup(_ request: AWSEC2CreatePlacementGroupRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreatePlacementGroup service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreatePlacementGroupResult. -
Creates a placement group in which to launch instances. The strategy of the placement group determines how the instances are organized within the group.
A
clusterplacement group is a logical grouping of instances within a single Availability Zone that benefit from low network latency, high network throughput. Aspreadplacement group places instances on distinct hardware. Apartitionplacement group places groups of instances in different partitions, where instances in one partition do not share the same hardware with instances in another partition.For more information, see Placement groups in the Amazon EC2 User Guide.
See
AWSEC2CreatePlacementGroupRequest
See
AWSEC2CreatePlacementGroupResult
Declaration
Objective-C
- (void)createPlacementGroup: (nonnull AWSEC2CreatePlacementGroupRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreatePlacementGroupResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createPlacementGroup(_ request: AWSEC2CreatePlacementGroupRequest) async throws -> AWSEC2CreatePlacementGroupResultParameters
requestA container for the necessary parameters to execute the CreatePlacementGroup service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a public IPv4 address pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only. To monitor the status of pool creation, use DescribePublicIpv4Pools.
See
AWSEC2CreatePublicIpv4PoolRequest
See
AWSEC2CreatePublicIpv4PoolResult
Declaration
Objective-C
- (id)createPublicIpv4Pool:(nonnull AWSEC2CreatePublicIpv4PoolRequest *)request;Swift
func createPublicIpv4Pool(_ request: AWSEC2CreatePublicIpv4PoolRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreatePublicIpv4Pool service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreatePublicIpv4PoolResult. -
Creates a public IPv4 address pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only. To monitor the status of pool creation, use DescribePublicIpv4Pools.
See
AWSEC2CreatePublicIpv4PoolRequest
See
AWSEC2CreatePublicIpv4PoolResult
Declaration
Objective-C
- (void)createPublicIpv4Pool: (nonnull AWSEC2CreatePublicIpv4PoolRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreatePublicIpv4PoolResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createPublicIpv4Pool(_ request: AWSEC2CreatePublicIpv4PoolRequest) async throws -> AWSEC2CreatePublicIpv4PoolResultParameters
requestA container for the necessary parameters to execute the CreatePublicIpv4Pool service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a root volume replacement task for an Amazon EC2 instance. The root volume can either be restored to its initial launch state, or it can be restored using a specific snapshot.
For more information, see Replace a root volume in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateReplaceRootVolumeTaskRequest
See
AWSEC2CreateReplaceRootVolumeTaskResult
Declaration
Objective-C
- (id)createReplaceRootVolumeTask: (nonnull AWSEC2CreateReplaceRootVolumeTaskRequest *)request;Swift
func createReplaceRootVolumeTask(_ request: AWSEC2CreateReplaceRootVolumeTaskRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateReplaceRootVolumeTask service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateReplaceRootVolumeTaskResult. -
Creates a root volume replacement task for an Amazon EC2 instance. The root volume can either be restored to its initial launch state, or it can be restored using a specific snapshot.
For more information, see Replace a root volume in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateReplaceRootVolumeTaskRequest
See
AWSEC2CreateReplaceRootVolumeTaskResult
Declaration
Objective-C
- (void)createReplaceRootVolumeTask: (nonnull AWSEC2CreateReplaceRootVolumeTaskRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateReplaceRootVolumeTaskResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createReplaceRootVolumeTask(_ request: AWSEC2CreateReplaceRootVolumeTaskRequest) async throws -> AWSEC2CreateReplaceRootVolumeTaskResultParameters
requestA container for the necessary parameters to execute the CreateReplaceRootVolumeTask service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Standard Reserved Instance listing at a time. To get a list of your Standard Reserved Instances, you can use the DescribeReservedInstances operation.
Only Standard Reserved Instances can be sold in the Reserved Instance Marketplace. Convertible Reserved Instances cannot be sold.
The Reserved Instance Marketplace matches sellers who want to resell Standard Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.
To sell your Standard Reserved Instances, you must first register as a seller in the Reserved Instance Marketplace. After completing the registration process, you can create a Reserved Instance Marketplace listing of some or all of your Standard Reserved Instances, and specify the upfront price to receive for them. Your Standard Reserved Instance listings then become available for purchase. To view the details of your Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings operation.
For more information, see Reserved Instance Marketplace in the Amazon EC2 User Guide.
See
AWSEC2CreateReservedInstancesListingRequest
See
AWSEC2CreateReservedInstancesListingResult
Declaration
Objective-C
- (id)createReservedInstancesListing: (nonnull AWSEC2CreateReservedInstancesListingRequest *)request;Swift
func createReservedInstancesListing(_ request: AWSEC2CreateReservedInstancesListingRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateReservedInstancesListing service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateReservedInstancesListingResult. -
Creates a listing for Amazon EC2 Standard Reserved Instances to be sold in the Reserved Instance Marketplace. You can submit one Standard Reserved Instance listing at a time. To get a list of your Standard Reserved Instances, you can use the DescribeReservedInstances operation.
Only Standard Reserved Instances can be sold in the Reserved Instance Marketplace. Convertible Reserved Instances cannot be sold.
The Reserved Instance Marketplace matches sellers who want to resell Standard Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.
To sell your Standard Reserved Instances, you must first register as a seller in the Reserved Instance Marketplace. After completing the registration process, you can create a Reserved Instance Marketplace listing of some or all of your Standard Reserved Instances, and specify the upfront price to receive for them. Your Standard Reserved Instance listings then become available for purchase. To view the details of your Standard Reserved Instance listing, you can use the DescribeReservedInstancesListings operation.
For more information, see Reserved Instance Marketplace in the Amazon EC2 User Guide.
See
AWSEC2CreateReservedInstancesListingRequest
See
AWSEC2CreateReservedInstancesListingResult
Declaration
Objective-C
- (void) createReservedInstancesListing: (nonnull AWSEC2CreateReservedInstancesListingRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateReservedInstancesListingResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createReservedInstancesListing(_ request: AWSEC2CreateReservedInstancesListingRequest) async throws -> AWSEC2CreateReservedInstancesListingResultParameters
requestA container for the necessary parameters to execute the CreateReservedInstancesListing service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Starts a task that restores an AMI from an Amazon S3 object that was previously created by using CreateStoreImageTask.
To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
For more information, see Store and restore an AMI using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateRestoreImageTaskRequest
See
AWSEC2CreateRestoreImageTaskResult
Declaration
Objective-C
- (id)createRestoreImageTask: (nonnull AWSEC2CreateRestoreImageTaskRequest *)request;Swift
func createRestoreImageTask(_ request: AWSEC2CreateRestoreImageTaskRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateRestoreImageTask service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateRestoreImageTaskResult. -
Starts a task that restores an AMI from an Amazon S3 object that was previously created by using CreateStoreImageTask.
To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
For more information, see Store and restore an AMI using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateRestoreImageTaskRequest
See
AWSEC2CreateRestoreImageTaskResult
Declaration
Objective-C
- (void) createRestoreImageTask: (nonnull AWSEC2CreateRestoreImageTaskRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateRestoreImageTaskResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createRestoreImageTask(_ request: AWSEC2CreateRestoreImageTaskRequest) async throws -> AWSEC2CreateRestoreImageTaskResultParameters
requestA container for the necessary parameters to execute the CreateRestoreImageTask service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a route in a route table within a VPC.
You must specify one of the following targets: internet gateway or virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.
When determining how to route traffic, we use the route with the most specific match. For example, traffic is destined for the IPv4 address
192.0.2.3, and the route table includes the following two IPv4 routes:192.0.2.0/24(goes to some target A)192.0.2.0/28(goes to some target B)
Both routes apply to the traffic destined for
192.0.2.3. However, the second route in the list covers a smaller number of IP addresses and is therefore more specific, so we use that route to determine where to target the traffic.For more information about route tables, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateRouteRequest
See
AWSEC2CreateRouteResult
Declaration
Objective-C
- (id)createRoute:(nonnull AWSEC2CreateRouteRequest *)request;Swift
func createRoute(_ request: AWSEC2CreateRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateRouteResult. -
Creates a route in a route table within a VPC.
You must specify one of the following targets: internet gateway or virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.
When determining how to route traffic, we use the route with the most specific match. For example, traffic is destined for the IPv4 address
192.0.2.3, and the route table includes the following two IPv4 routes:192.0.2.0/24(goes to some target A)192.0.2.0/28(goes to some target B)
Both routes apply to the traffic destined for
192.0.2.3. However, the second route in the list covers a smaller number of IP addresses and is therefore more specific, so we use that route to determine where to target the traffic.For more information about route tables, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateRouteRequest
See
AWSEC2CreateRouteResult
Declaration
Objective-C
- (void)createRoute:(nonnull AWSEC2CreateRouteRequest *)request completionHandler:(void (^_Nullable)(AWSEC2CreateRouteResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createRoute(_ request: AWSEC2CreateRouteRequest) async throws -> AWSEC2CreateRouteResultParameters
requestA container for the necessary parameters to execute the CreateRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.
For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateRouteTableRequest
See
AWSEC2CreateRouteTableResult
Declaration
Objective-C
- (id)createRouteTable:(nonnull AWSEC2CreateRouteTableRequest *)request;Swift
func createRouteTable(_ request: AWSEC2CreateRouteTableRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateRouteTable service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateRouteTableResult. -
Creates a route table for the specified VPC. After you create a route table, you can add routes and associate the table with a subnet.
For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateRouteTableRequest
See
AWSEC2CreateRouteTableResult
Declaration
Objective-C
- (void)createRouteTable:(nonnull AWSEC2CreateRouteTableRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateRouteTableResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createRouteTable(_ request: AWSEC2CreateRouteTableRequest) async throws -> AWSEC2CreateRouteTableResultParameters
requestA container for the necessary parameters to execute the CreateRouteTable service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a security group.
A security group acts as a virtual firewall for your instance to control inbound and outbound traffic. For more information, see Amazon EC2 security groups in the Amazon Elastic Compute Cloud User Guide and Security groups for your VPC in the Amazon Virtual Private Cloud User Guide.
When you create a security group, you specify a friendly name of your choice. You can have a security group for use in EC2-Classic with the same name as a security group for use in a VPC. However, you can’t have two security groups for use in EC2-Classic with the same name or two security groups for use in a VPC with the same name.
You have a default security group for use in EC2-Classic and a default security group for use in your VPC. If you don’t specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.
You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.
For more information about VPC security group limits, see Amazon VPC Limits.
See
AWSEC2CreateSecurityGroupRequest
See
AWSEC2CreateSecurityGroupResult
Declaration
Objective-C
- (id)createSecurityGroup:(nonnull AWSEC2CreateSecurityGroupRequest *)request;Swift
func createSecurityGroup(_ request: AWSEC2CreateSecurityGroupRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateSecurityGroup service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateSecurityGroupResult. -
Creates a security group.
A security group acts as a virtual firewall for your instance to control inbound and outbound traffic. For more information, see Amazon EC2 security groups in the Amazon Elastic Compute Cloud User Guide and Security groups for your VPC in the Amazon Virtual Private Cloud User Guide.
When you create a security group, you specify a friendly name of your choice. You can have a security group for use in EC2-Classic with the same name as a security group for use in a VPC. However, you can’t have two security groups for use in EC2-Classic with the same name or two security groups for use in a VPC with the same name.
You have a default security group for use in EC2-Classic and a default security group for use in your VPC. If you don’t specify a security group when you launch an instance, the instance is launched into the appropriate default security group. A default security group includes a default rule that grants instances unrestricted network access to each other.
You can add or remove rules from your security groups using AuthorizeSecurityGroupIngress, AuthorizeSecurityGroupEgress, RevokeSecurityGroupIngress, and RevokeSecurityGroupEgress.
For more information about VPC security group limits, see Amazon VPC Limits.
See
AWSEC2CreateSecurityGroupRequest
See
AWSEC2CreateSecurityGroupResult
Declaration
Objective-C
- (void)createSecurityGroup:(nonnull AWSEC2CreateSecurityGroupRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateSecurityGroupResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createSecurityGroup(_ request: AWSEC2CreateSecurityGroupRequest) async throws -> AWSEC2CreateSecurityGroupResultParameters
requestA container for the necessary parameters to execute the CreateSecurityGroup service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.
You can create snapshots of volumes in a Region and volumes on an Outpost. If you create a snapshot of a volume in a Region, the snapshot must be stored in the same Region as the volume. If you create a snapshot of a volume on an Outpost, the snapshot can be stored on the same Outpost as the volume, or in the Region for that Outpost.
When a snapshot is created, any Amazon Web Services Marketplace product codes that are associated with the source volume are propagated to the snapshot.
You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued; this might exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is
pending.To create a snapshot for Amazon EBS volumes that serve as root devices, you should stop the instance before taking the snapshot.
Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected.
You can tag your snapshots during creation. For more information, see Tag your Amazon EC2 resources in the Amazon Elastic Compute Cloud User Guide.
For more information, see Amazon Elastic Block Store and Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateSnapshotRequest
See
AWSEC2Snapshot
Declaration
Objective-C
- (id)createSnapshot:(nonnull AWSEC2CreateSnapshotRequest *)request;Swift
func createSnapshot(_ request: AWSEC2CreateSnapshotRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateSnapshot service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2Snapshot. -
Creates a snapshot of an EBS volume and stores it in Amazon S3. You can use snapshots for backups, to make copies of EBS volumes, and to save data before shutting down an instance.
You can create snapshots of volumes in a Region and volumes on an Outpost. If you create a snapshot of a volume in a Region, the snapshot must be stored in the same Region as the volume. If you create a snapshot of a volume on an Outpost, the snapshot can be stored on the same Outpost as the volume, or in the Region for that Outpost.
When a snapshot is created, any Amazon Web Services Marketplace product codes that are associated with the source volume are propagated to the snapshot.
You can take a snapshot of an attached volume that is in use. However, snapshots only capture data that has been written to your Amazon EBS volume at the time the snapshot command is issued; this might exclude any data that has been cached by any applications or the operating system. If you can pause any file systems on the volume long enough to take a snapshot, your snapshot should be complete. However, if you cannot pause all file writes to the volume, you should unmount the volume from within the instance, issue the snapshot command, and then remount the volume to ensure a consistent and complete snapshot. You may remount and use your volume while the snapshot status is
pending.To create a snapshot for Amazon EBS volumes that serve as root devices, you should stop the instance before taking the snapshot.
Snapshots that are taken from encrypted volumes are automatically encrypted. Volumes that are created from encrypted snapshots are also automatically encrypted. Your encrypted volumes and any associated snapshots always remain protected.
You can tag your snapshots during creation. For more information, see Tag your Amazon EC2 resources in the Amazon Elastic Compute Cloud User Guide.
For more information, see Amazon Elastic Block Store and Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateSnapshotRequest
See
AWSEC2Snapshot
Declaration
Objective-C
- (void)createSnapshot:(nonnull AWSEC2CreateSnapshotRequest *)request completionHandler:(void (^_Nullable)(AWSEC2Snapshot *_Nullable, NSError *_Nullable))completionHandler;Swift
func createSnapshot(_ request: AWSEC2CreateSnapshotRequest) async throws -> AWSEC2SnapshotParameters
requestA container for the necessary parameters to execute the CreateSnapshot service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates crash-consistent snapshots of multiple EBS volumes and stores the data in S3. Volumes are chosen by specifying an instance. Any attached volumes will produce one snapshot each that is crash-consistent across the instance. Boot volumes can be excluded by changing the parameters.
You can create multi-volume snapshots of instances in a Region and instances on an Outpost. If you create snapshots from an instance in a Region, the snapshots must be stored in the same Region as the instance. If you create snapshots from an instance on an Outpost, the snapshots can be stored on the same Outpost as the instance, or in the Region for that Outpost.
See
AWSEC2CreateSnapshotsRequest
See
AWSEC2CreateSnapshotsResult
Declaration
Objective-C
- (id)createSnapshots:(nonnull AWSEC2CreateSnapshotsRequest *)request;Swift
func createSnapshots(_ request: AWSEC2CreateSnapshotsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateSnapshots service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateSnapshotsResult. -
Creates crash-consistent snapshots of multiple EBS volumes and stores the data in S3. Volumes are chosen by specifying an instance. Any attached volumes will produce one snapshot each that is crash-consistent across the instance. Boot volumes can be excluded by changing the parameters.
You can create multi-volume snapshots of instances in a Region and instances on an Outpost. If you create snapshots from an instance in a Region, the snapshots must be stored in the same Region as the instance. If you create snapshots from an instance on an Outpost, the snapshots can be stored on the same Outpost as the instance, or in the Region for that Outpost.
See
AWSEC2CreateSnapshotsRequest
See
AWSEC2CreateSnapshotsResult
Declaration
Objective-C
- (void)createSnapshots:(nonnull AWSEC2CreateSnapshotsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateSnapshotsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createSnapshots(_ request: AWSEC2CreateSnapshotsRequest) async throws -> AWSEC2CreateSnapshotsResultParameters
requestA container for the necessary parameters to execute the CreateSnapshots service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per Amazon Web Services account. For more information, see Spot Instance data feed in the Amazon EC2 User Guide for Linux Instances.
See
AWSEC2CreateSpotDatafeedSubscriptionRequest
See
AWSEC2CreateSpotDatafeedSubscriptionResult
Declaration
Objective-C
- (id)createSpotDatafeedSubscription: (nonnull AWSEC2CreateSpotDatafeedSubscriptionRequest *)request;Swift
func createSpotDatafeedSubscription(_ request: AWSEC2CreateSpotDatafeedSubscriptionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateSpotDatafeedSubscription service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateSpotDatafeedSubscriptionResult. -
Creates a data feed for Spot Instances, enabling you to view Spot Instance usage logs. You can create one data feed per Amazon Web Services account. For more information, see Spot Instance data feed in the Amazon EC2 User Guide for Linux Instances.
See
AWSEC2CreateSpotDatafeedSubscriptionRequest
See
AWSEC2CreateSpotDatafeedSubscriptionResult
Declaration
Objective-C
- (void) createSpotDatafeedSubscription: (nonnull AWSEC2CreateSpotDatafeedSubscriptionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateSpotDatafeedSubscriptionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createSpotDatafeedSubscription(_ request: AWSEC2CreateSpotDatafeedSubscriptionRequest) async throws -> AWSEC2CreateSpotDatafeedSubscriptionResultParameters
requestA container for the necessary parameters to execute the CreateSpotDatafeedSubscription service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Stores an AMI as a single object in an Amazon S3 bucket.
To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
For more information, see Store and restore an AMI using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateStoreImageTaskRequest
See
AWSEC2CreateStoreImageTaskResult
Declaration
Objective-C
- (id)createStoreImageTask:(nonnull AWSEC2CreateStoreImageTaskRequest *)request;Swift
func createStoreImageTask(_ request: AWSEC2CreateStoreImageTaskRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateStoreImageTask service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateStoreImageTaskResult. -
Stores an AMI as a single object in an Amazon S3 bucket.
To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
For more information, see Store and restore an AMI using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateStoreImageTaskRequest
See
AWSEC2CreateStoreImageTaskResult
Declaration
Objective-C
- (void)createStoreImageTask: (nonnull AWSEC2CreateStoreImageTaskRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateStoreImageTaskResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createStoreImageTask(_ request: AWSEC2CreateStoreImageTaskRequest) async throws -> AWSEC2CreateStoreImageTaskResultParameters
requestA container for the necessary parameters to execute the CreateStoreImageTask service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a subnet in a specified VPC.
You must specify an IPv4 CIDR block for the subnet. After you create a subnet, you can’t change its CIDR block. The allowed block size is between a /16 netmask (65,536 IP addresses) and /28 netmask (16 IP addresses). The CIDR block must not overlap with the CIDR block of an existing subnet in the VPC.
If you’ve associated an IPv6 CIDR block with your VPC, you can create a subnet with an IPv6 CIDR block that uses a /64 prefix length.
Amazon Web Services reserves both the first four and the last IPv4 address in each subnet’s CIDR block. They’re not available for use.
If you add more than one subnet to a VPC, they’re set up in a star topology with a logical router in the middle.
When you stop an instance in a subnet, it retains its private IPv4 address. It’s therefore possible to have a subnet with no running instances (they’re all stopped), but no remaining IP addresses available.
For more information about subnets, see Your VPC and subnets in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateSubnetRequest
See
AWSEC2CreateSubnetResult
Declaration
Objective-C
- (id)createSubnet:(nonnull AWSEC2CreateSubnetRequest *)request;Swift
func createSubnet(_ request: AWSEC2CreateSubnetRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateSubnet service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateSubnetResult. -
Creates a subnet in a specified VPC.
You must specify an IPv4 CIDR block for the subnet. After you create a subnet, you can’t change its CIDR block. The allowed block size is between a /16 netmask (65,536 IP addresses) and /28 netmask (16 IP addresses). The CIDR block must not overlap with the CIDR block of an existing subnet in the VPC.
If you’ve associated an IPv6 CIDR block with your VPC, you can create a subnet with an IPv6 CIDR block that uses a /64 prefix length.
Amazon Web Services reserves both the first four and the last IPv4 address in each subnet’s CIDR block. They’re not available for use.
If you add more than one subnet to a VPC, they’re set up in a star topology with a logical router in the middle.
When you stop an instance in a subnet, it retains its private IPv4 address. It’s therefore possible to have a subnet with no running instances (they’re all stopped), but no remaining IP addresses available.
For more information about subnets, see Your VPC and subnets in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateSubnetRequest
See
AWSEC2CreateSubnetResult
Declaration
Objective-C
- (void)createSubnet:(nonnull AWSEC2CreateSubnetRequest *)request completionHandler:(void (^_Nullable)(AWSEC2CreateSubnetResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createSubnet(_ request: AWSEC2CreateSubnetRequest) async throws -> AWSEC2CreateSubnetResultParameters
requestA container for the necessary parameters to execute the CreateSubnet service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a subnet CIDR reservation. For information about subnet CIDR reservations, see Subnet CIDR reservations in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateSubnetCidrReservationRequest
See
AWSEC2CreateSubnetCidrReservationResult
Declaration
Objective-C
- (id)createSubnetCidrReservation: (nonnull AWSEC2CreateSubnetCidrReservationRequest *)request;Swift
func createSubnetCidrReservation(_ request: AWSEC2CreateSubnetCidrReservationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateSubnetCidrReservation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateSubnetCidrReservationResult. -
Creates a subnet CIDR reservation. For information about subnet CIDR reservations, see Subnet CIDR reservations in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2CreateSubnetCidrReservationRequest
See
AWSEC2CreateSubnetCidrReservationResult
Declaration
Objective-C
- (void)createSubnetCidrReservation: (nonnull AWSEC2CreateSubnetCidrReservationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateSubnetCidrReservationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createSubnetCidrReservation(_ request: AWSEC2CreateSubnetCidrReservationRequest) async throws -> AWSEC2CreateSubnetCidrReservationResultParameters
requestA container for the necessary parameters to execute the CreateSubnetCidrReservation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.
For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide. For more information about creating IAM policies that control users’ access to resources based on tags, see Supported Resource-Level Permissions for Amazon EC2 API Actions in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateTagsRequest
Declaration
Objective-C
- (id)createTags:(nonnull AWSEC2CreateTagsRequest *)request;Swift
func createTags(_ request: AWSEC2CreateTagsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTags service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Adds or overwrites only the specified tags for the specified Amazon EC2 resource or resources. When you specify an existing tag key, the value is overwritten with the new value. Each resource can have a maximum of 50 tags. Each tag consists of a key and optional value. Tag keys must be unique per resource.
For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide. For more information about creating IAM policies that control users’ access to resources based on tags, see Supported Resource-Level Permissions for Amazon EC2 API Actions in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateTagsRequest
Declaration
Objective-C
- (void)createTags:(nonnull AWSEC2CreateTagsRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func createTags(_ request: AWSEC2CreateTagsRequest) async throwsParameters
requestA container for the necessary parameters to execute the CreateTags service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a Traffic Mirror filter.
A Traffic Mirror filter is a set of rules that defines the traffic to mirror.
By default, no traffic is mirrored. To mirror traffic, use CreateTrafficMirrorFilterRule to add Traffic Mirror rules to the filter. The rules you add define what traffic gets mirrored. You can also use ModifyTrafficMirrorFilterNetworkServices to mirror supported network services.
See
AWSEC2CreateTrafficMirrorFilterRequest
See
AWSEC2CreateTrafficMirrorFilterResult
Declaration
Objective-C
- (id)createTrafficMirrorFilter: (nonnull AWSEC2CreateTrafficMirrorFilterRequest *)request;Swift
func createTrafficMirrorFilter(_ request: AWSEC2CreateTrafficMirrorFilterRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTrafficMirrorFilter service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTrafficMirrorFilterResult. -
Creates a Traffic Mirror filter.
A Traffic Mirror filter is a set of rules that defines the traffic to mirror.
By default, no traffic is mirrored. To mirror traffic, use CreateTrafficMirrorFilterRule to add Traffic Mirror rules to the filter. The rules you add define what traffic gets mirrored. You can also use ModifyTrafficMirrorFilterNetworkServices to mirror supported network services.
See
AWSEC2CreateTrafficMirrorFilterRequest
See
AWSEC2CreateTrafficMirrorFilterResult
Declaration
Objective-C
- (void)createTrafficMirrorFilter: (nonnull AWSEC2CreateTrafficMirrorFilterRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTrafficMirrorFilterResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTrafficMirrorFilter(_ request: AWSEC2CreateTrafficMirrorFilterRequest) async throws -> AWSEC2CreateTrafficMirrorFilterResultParameters
requestA container for the necessary parameters to execute the CreateTrafficMirrorFilter service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a Traffic Mirror filter rule.
A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.
You need the Traffic Mirror filter ID when you create the rule.
See
AWSEC2CreateTrafficMirrorFilterRuleRequest
See
AWSEC2CreateTrafficMirrorFilterRuleResult
Declaration
Objective-C
- (id)createTrafficMirrorFilterRule: (nonnull AWSEC2CreateTrafficMirrorFilterRuleRequest *)request;Swift
func createTrafficMirrorFilterRule(_ request: AWSEC2CreateTrafficMirrorFilterRuleRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTrafficMirrorFilterRule service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTrafficMirrorFilterRuleResult. -
Creates a Traffic Mirror filter rule.
A Traffic Mirror rule defines the Traffic Mirror source traffic to mirror.
You need the Traffic Mirror filter ID when you create the rule.
See
AWSEC2CreateTrafficMirrorFilterRuleRequest
See
AWSEC2CreateTrafficMirrorFilterRuleResult
Declaration
Objective-C
- (void) createTrafficMirrorFilterRule: (nonnull AWSEC2CreateTrafficMirrorFilterRuleRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTrafficMirrorFilterRuleResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTrafficMirrorFilterRule(_ request: AWSEC2CreateTrafficMirrorFilterRuleRequest) async throws -> AWSEC2CreateTrafficMirrorFilterRuleResultParameters
requestA container for the necessary parameters to execute the CreateTrafficMirrorFilterRule service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a Traffic Mirror session.
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use CreateTrafficMirrorFilter to create filter rules that specify the traffic to mirror.
See
AWSEC2CreateTrafficMirrorSessionRequest
See
AWSEC2CreateTrafficMirrorSessionResult
Declaration
Objective-C
- (id)createTrafficMirrorSession: (nonnull AWSEC2CreateTrafficMirrorSessionRequest *)request;Swift
func createTrafficMirrorSession(_ request: AWSEC2CreateTrafficMirrorSessionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTrafficMirrorSession service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTrafficMirrorSessionResult. -
Creates a Traffic Mirror session.
A Traffic Mirror session actively copies packets from a Traffic Mirror source to a Traffic Mirror target. Create a filter, and then assign it to the session to define a subset of the traffic to mirror, for example all TCP traffic.
The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in a different VPC connected via VPC peering or a transit gateway.
By default, no traffic is mirrored. Use CreateTrafficMirrorFilter to create filter rules that specify the traffic to mirror.
See
AWSEC2CreateTrafficMirrorSessionRequest
See
AWSEC2CreateTrafficMirrorSessionResult
Declaration
Objective-C
- (void)createTrafficMirrorSession: (nonnull AWSEC2CreateTrafficMirrorSessionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTrafficMirrorSessionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTrafficMirrorSession(_ request: AWSEC2CreateTrafficMirrorSessionRequest) async throws -> AWSEC2CreateTrafficMirrorSessionResultParameters
requestA container for the necessary parameters to execute the CreateTrafficMirrorSession service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a target for your Traffic Mirror session.
A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in different VPCs connected via VPC peering or a transit gateway.
A Traffic Mirror target can be a network interface, or a Network Load Balancer.
To use the target in a Traffic Mirror session, use CreateTrafficMirrorSession.
See
AWSEC2CreateTrafficMirrorTargetRequest
See
AWSEC2CreateTrafficMirrorTargetResult
Declaration
Objective-C
- (id)createTrafficMirrorTarget: (nonnull AWSEC2CreateTrafficMirrorTargetRequest *)request;Swift
func createTrafficMirrorTarget(_ request: AWSEC2CreateTrafficMirrorTargetRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTrafficMirrorTarget service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTrafficMirrorTargetResult. -
Creates a target for your Traffic Mirror session.
A Traffic Mirror target is the destination for mirrored traffic. The Traffic Mirror source and the Traffic Mirror target (monitoring appliances) can be in the same VPC, or in different VPCs connected via VPC peering or a transit gateway.
A Traffic Mirror target can be a network interface, or a Network Load Balancer.
To use the target in a Traffic Mirror session, use CreateTrafficMirrorSession.
See
AWSEC2CreateTrafficMirrorTargetRequest
See
AWSEC2CreateTrafficMirrorTargetResult
Declaration
Objective-C
- (void)createTrafficMirrorTarget: (nonnull AWSEC2CreateTrafficMirrorTargetRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTrafficMirrorTargetResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTrafficMirrorTarget(_ request: AWSEC2CreateTrafficMirrorTargetRequest) async throws -> AWSEC2CreateTrafficMirrorTargetResultParameters
requestA container for the necessary parameters to execute the CreateTrafficMirrorTarget service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a transit gateway.
You can use a transit gateway to interconnect your virtual private clouds (VPC) and on-premises networks. After the transit gateway enters the
availablestate, you can attach your VPCs and VPN connections to the transit gateway.To attach your VPCs, use CreateTransitGatewayVpcAttachment.
To attach a VPN connection, use CreateCustomerGateway to create a customer gateway and specify the ID of the customer gateway and the ID of the transit gateway in a call to CreateVpnConnection.
When you create a transit gateway, we create a default transit gateway route table and use it as the default association route table and the default propagation route table. You can use CreateTransitGatewayRouteTable to create additional transit gateway route tables. If you disable automatic route propagation, we do not create a default transit gateway route table. You can use EnableTransitGatewayRouteTablePropagation to propagate routes from a resource attachment to a transit gateway route table. If you disable automatic associations, you can use AssociateTransitGatewayRouteTable to associate a resource attachment with a transit gateway route table.
See
AWSEC2CreateTransitGatewayRequest
See
AWSEC2CreateTransitGatewayResult
Declaration
Objective-C
- (id)createTransitGateway:(nonnull AWSEC2CreateTransitGatewayRequest *)request;Swift
func createTransitGateway(_ request: AWSEC2CreateTransitGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTransitGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTransitGatewayResult. -
Creates a transit gateway.
You can use a transit gateway to interconnect your virtual private clouds (VPC) and on-premises networks. After the transit gateway enters the
availablestate, you can attach your VPCs and VPN connections to the transit gateway.To attach your VPCs, use CreateTransitGatewayVpcAttachment.
To attach a VPN connection, use CreateCustomerGateway to create a customer gateway and specify the ID of the customer gateway and the ID of the transit gateway in a call to CreateVpnConnection.
When you create a transit gateway, we create a default transit gateway route table and use it as the default association route table and the default propagation route table. You can use CreateTransitGatewayRouteTable to create additional transit gateway route tables. If you disable automatic route propagation, we do not create a default transit gateway route table. You can use EnableTransitGatewayRouteTablePropagation to propagate routes from a resource attachment to a transit gateway route table. If you disable automatic associations, you can use AssociateTransitGatewayRouteTable to associate a resource attachment with a transit gateway route table.
See
AWSEC2CreateTransitGatewayRequest
See
AWSEC2CreateTransitGatewayResult
Declaration
Objective-C
- (void)createTransitGateway: (nonnull AWSEC2CreateTransitGatewayRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateTransitGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTransitGateway(_ request: AWSEC2CreateTransitGatewayRequest) async throws -> AWSEC2CreateTransitGatewayResultParameters
requestA container for the necessary parameters to execute the CreateTransitGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a Connect attachment from a specified transit gateway attachment. A Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a transit gateway and an appliance.
A Connect attachment uses an existing VPC or Amazon Web Services Direct Connect attachment as the underlying transport mechanism.
See
AWSEC2CreateTransitGatewayConnectRequest
See
AWSEC2CreateTransitGatewayConnectResult
Declaration
Objective-C
- (id)createTransitGatewayConnect: (nonnull AWSEC2CreateTransitGatewayConnectRequest *)request;Swift
func createTransitGatewayConnect(_ request: AWSEC2CreateTransitGatewayConnectRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTransitGatewayConnect service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTransitGatewayConnectResult. -
Creates a Connect attachment from a specified transit gateway attachment. A Connect attachment is a GRE-based tunnel attachment that you can use to establish a connection between a transit gateway and an appliance.
A Connect attachment uses an existing VPC or Amazon Web Services Direct Connect attachment as the underlying transport mechanism.
See
AWSEC2CreateTransitGatewayConnectRequest
See
AWSEC2CreateTransitGatewayConnectResult
Declaration
Objective-C
- (void)createTransitGatewayConnect: (nonnull AWSEC2CreateTransitGatewayConnectRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTransitGatewayConnectResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTransitGatewayConnect(_ request: AWSEC2CreateTransitGatewayConnectRequest) async throws -> AWSEC2CreateTransitGatewayConnectResultParameters
requestA container for the necessary parameters to execute the CreateTransitGatewayConnect service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance.
The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6).
For more information, see Connect peers in the Transit Gateways Guide.
See
AWSEC2CreateTransitGatewayConnectPeerRequest
See
AWSEC2CreateTransitGatewayConnectPeerResult
Declaration
Objective-C
- (id)createTransitGatewayConnectPeer: (nonnull AWSEC2CreateTransitGatewayConnectPeerRequest *)request;Swift
func createTransitGatewayConnectPeer(_ request: AWSEC2CreateTransitGatewayConnectPeerRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTransitGatewayConnectPeer service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTransitGatewayConnectPeerResult. -
Creates a Connect peer for a specified transit gateway Connect attachment between a transit gateway and an appliance.
The peer address and transit gateway address must be the same IP address family (IPv4 or IPv6).
For more information, see Connect peers in the Transit Gateways Guide.
See
AWSEC2CreateTransitGatewayConnectPeerRequest
See
AWSEC2CreateTransitGatewayConnectPeerResult
Declaration
Objective-C
- (void)createTransitGatewayConnectPeer: (nonnull AWSEC2CreateTransitGatewayConnectPeerRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTransitGatewayConnectPeerResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTransitGatewayConnectPeer(_ request: AWSEC2CreateTransitGatewayConnectPeerRequest) async throws -> AWSEC2CreateTransitGatewayConnectPeerResultParameters
requestA container for the necessary parameters to execute the CreateTransitGatewayConnectPeer service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a multicast domain using the specified transit gateway.
The transit gateway must be in the available state before you create a domain. Use DescribeTransitGateways to see the state of transit gateway.
See
AWSEC2CreateTransitGatewayMulticastDomainRequest
See
AWSEC2CreateTransitGatewayMulticastDomainResult
Declaration
Objective-C
- (id)createTransitGatewayMulticastDomain: (nonnull AWSEC2CreateTransitGatewayMulticastDomainRequest *)request;Swift
func createTransitGatewayMulticastDomain(_ request: AWSEC2CreateTransitGatewayMulticastDomainRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTransitGatewayMulticastDomain service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTransitGatewayMulticastDomainResult. -
Creates a multicast domain using the specified transit gateway.
The transit gateway must be in the available state before you create a domain. Use DescribeTransitGateways to see the state of transit gateway.
See
AWSEC2CreateTransitGatewayMulticastDomainRequest
See
AWSEC2CreateTransitGatewayMulticastDomainResult
Declaration
Objective-C
- (void) createTransitGatewayMulticastDomain: (nonnull AWSEC2CreateTransitGatewayMulticastDomainRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTransitGatewayMulticastDomainResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTransitGatewayMulticastDomain(_ request: AWSEC2CreateTransitGatewayMulticastDomainRequest) async throws -> AWSEC2CreateTransitGatewayMulticastDomainResultParameters
requestA container for the necessary parameters to execute the CreateTransitGatewayMulticastDomain service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter). The transit gateways must be in different Regions. The peer transit gateway can be in your account or a different Amazon Web Services account.
After you create the peering attachment, the owner of the accepter transit gateway must accept the attachment request.
See
AWSEC2CreateTransitGatewayPeeringAttachmentRequest
See
AWSEC2CreateTransitGatewayPeeringAttachmentResult
Declaration
Objective-C
- (id)createTransitGatewayPeeringAttachment: (nonnull AWSEC2CreateTransitGatewayPeeringAttachmentRequest *)request;Swift
func createTransitGatewayPeeringAttachment(_ request: AWSEC2CreateTransitGatewayPeeringAttachmentRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTransitGatewayPeeringAttachment service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTransitGatewayPeeringAttachmentResult. -
Requests a transit gateway peering attachment between the specified transit gateway (requester) and a peer transit gateway (accepter). The transit gateways must be in different Regions. The peer transit gateway can be in your account or a different Amazon Web Services account.
After you create the peering attachment, the owner of the accepter transit gateway must accept the attachment request.
See
AWSEC2CreateTransitGatewayPeeringAttachmentRequest
See
AWSEC2CreateTransitGatewayPeeringAttachmentResult
Declaration
Objective-C
- (void) createTransitGatewayPeeringAttachment: (nonnull AWSEC2CreateTransitGatewayPeeringAttachmentRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTransitGatewayPeeringAttachmentResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTransitGatewayPeeringAttachment(_ request: AWSEC2CreateTransitGatewayPeeringAttachmentRequest) async throws -> AWSEC2CreateTransitGatewayPeeringAttachmentResultParameters
requestA container for the necessary parameters to execute the CreateTransitGatewayPeeringAttachment service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a reference (route) to a prefix list in a specified transit gateway route table.
See
AWSEC2CreateTransitGatewayPrefixListReferenceRequest
See
AWSEC2CreateTransitGatewayPrefixListReferenceResult
Declaration
Objective-C
- (id)createTransitGatewayPrefixListReference: (nonnull AWSEC2CreateTransitGatewayPrefixListReferenceRequest *)request;Swift
func createTransitGatewayPrefixListReference(_ request: AWSEC2CreateTransitGatewayPrefixListReferenceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTransitGatewayPrefixListReference service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTransitGatewayPrefixListReferenceResult. -
Creates a reference (route) to a prefix list in a specified transit gateway route table.
See
AWSEC2CreateTransitGatewayPrefixListReferenceRequest
See
AWSEC2CreateTransitGatewayPrefixListReferenceResult
Declaration
Objective-C
- (void) createTransitGatewayPrefixListReference: (nonnull AWSEC2CreateTransitGatewayPrefixListReferenceRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTransitGatewayPrefixListReferenceResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTransitGatewayPrefixListReference(_ request: AWSEC2CreateTransitGatewayPrefixListReferenceRequest) async throws -> AWSEC2CreateTransitGatewayPrefixListReferenceResultParameters
requestA container for the necessary parameters to execute the CreateTransitGatewayPrefixListReference service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a static route for the specified transit gateway route table.
See
AWSEC2CreateTransitGatewayRouteRequest
See
AWSEC2CreateTransitGatewayRouteResult
Declaration
Objective-C
- (id)createTransitGatewayRoute: (nonnull AWSEC2CreateTransitGatewayRouteRequest *)request;Swift
func createTransitGatewayRoute(_ request: AWSEC2CreateTransitGatewayRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTransitGatewayRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTransitGatewayRouteResult. -
Creates a static route for the specified transit gateway route table.
See
AWSEC2CreateTransitGatewayRouteRequest
See
AWSEC2CreateTransitGatewayRouteResult
Declaration
Objective-C
- (void)createTransitGatewayRoute: (nonnull AWSEC2CreateTransitGatewayRouteRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTransitGatewayRouteResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTransitGatewayRoute(_ request: AWSEC2CreateTransitGatewayRouteRequest) async throws -> AWSEC2CreateTransitGatewayRouteResultParameters
requestA container for the necessary parameters to execute the CreateTransitGatewayRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a route table for the specified transit gateway.
See
AWSEC2CreateTransitGatewayRouteTableRequest
See
AWSEC2CreateTransitGatewayRouteTableResult
Declaration
Objective-C
- (id)createTransitGatewayRouteTable: (nonnull AWSEC2CreateTransitGatewayRouteTableRequest *)request;Swift
func createTransitGatewayRouteTable(_ request: AWSEC2CreateTransitGatewayRouteTableRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTransitGatewayRouteTable service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTransitGatewayRouteTableResult. -
Creates a route table for the specified transit gateway.
See
AWSEC2CreateTransitGatewayRouteTableRequest
See
AWSEC2CreateTransitGatewayRouteTableResult
Declaration
Objective-C
- (void) createTransitGatewayRouteTable: (nonnull AWSEC2CreateTransitGatewayRouteTableRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTransitGatewayRouteTableResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTransitGatewayRouteTable(_ request: AWSEC2CreateTransitGatewayRouteTableRequest) async throws -> AWSEC2CreateTransitGatewayRouteTableResultParameters
requestA container for the necessary parameters to execute the CreateTransitGatewayRouteTable service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Attaches the specified VPC to the specified transit gateway.
If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.
To send VPC traffic to an attached transit gateway, add a route to the VPC route table using CreateRoute.
See
AWSEC2CreateTransitGatewayVpcAttachmentRequest
See
AWSEC2CreateTransitGatewayVpcAttachmentResult
Declaration
Objective-C
- (id)createTransitGatewayVpcAttachment: (nonnull AWSEC2CreateTransitGatewayVpcAttachmentRequest *)request;Swift
func createTransitGatewayVpcAttachment(_ request: AWSEC2CreateTransitGatewayVpcAttachmentRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateTransitGatewayVpcAttachment service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateTransitGatewayVpcAttachmentResult. -
Attaches the specified VPC to the specified transit gateway.
If you attach a VPC with a CIDR range that overlaps the CIDR range of a VPC that is already attached, the new VPC CIDR range is not propagated to the default propagation route table.
To send VPC traffic to an attached transit gateway, add a route to the VPC route table using CreateRoute.
See
AWSEC2CreateTransitGatewayVpcAttachmentRequest
See
AWSEC2CreateTransitGatewayVpcAttachmentResult
Declaration
Objective-C
- (void)createTransitGatewayVpcAttachment: (nonnull AWSEC2CreateTransitGatewayVpcAttachmentRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateTransitGatewayVpcAttachmentResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createTransitGatewayVpcAttachment(_ request: AWSEC2CreateTransitGatewayVpcAttachmentRequest) async throws -> AWSEC2CreateTransitGatewayVpcAttachmentResultParameters
requestA container for the necessary parameters to execute the CreateTransitGatewayVpcAttachment service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates an EBS volume that can be attached to an instance in the same Availability Zone.
You can create a new empty volume or restore a volume from an EBS snapshot. Any Amazon Web Services Marketplace product codes from the snapshot are propagated to the volume.
You can create encrypted volumes. Encrypted volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
You can tag your volumes during creation. For more information, see Tag your Amazon EC2 resources in the Amazon Elastic Compute Cloud User Guide.
For more information, see Create an Amazon EBS volume in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateVolumeRequest
See
AWSEC2Volume
Declaration
Objective-C
- (id)createVolume:(nonnull AWSEC2CreateVolumeRequest *)request;Swift
func createVolume(_ request: AWSEC2CreateVolumeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateVolume service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2Volume. -
Creates an EBS volume that can be attached to an instance in the same Availability Zone.
You can create a new empty volume or restore a volume from an EBS snapshot. Any Amazon Web Services Marketplace product codes from the snapshot are propagated to the volume.
You can create encrypted volumes. Encrypted volumes must be attached to instances that support Amazon EBS encryption. Volumes that are created from encrypted snapshots are also automatically encrypted. For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
You can tag your volumes during creation. For more information, see Tag your Amazon EC2 resources in the Amazon Elastic Compute Cloud User Guide.
For more information, see Create an Amazon EBS volume in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateVolumeRequest
See
AWSEC2Volume
Declaration
Objective-C
- (void)createVolume:(nonnull AWSEC2CreateVolumeRequest *)request completionHandler:(void (^_Nullable)(AWSEC2Volume *_Nullable, NSError *_Nullable))completionHandler;Swift
func createVolume(_ request: AWSEC2CreateVolumeRequest) async throws -> AWSEC2VolumeParameters
requestA container for the necessary parameters to execute the CreateVolume service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses). For more information about how large to make your VPC, see Your VPC and subnets in the Amazon Virtual Private Cloud User Guide.
You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon’s pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).
By default, each instance you launch in the VPC has the default DHCP options, which include only a default DNS server that we provide (AmazonProvidedDNS). For more information, see DHCP options sets in the Amazon Virtual Private Cloud User Guide.
You can specify the instance tenancy value for the VPC when you create it. You can’t change this value for the VPC after you create it. For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateVpcRequest
See
AWSEC2CreateVpcResult
Declaration
Objective-C
- (id)createVpc:(nonnull AWSEC2CreateVpcRequest *)request;Swift
func createVpc(_ request: AWSEC2CreateVpcRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateVpc service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateVpcResult. -
Creates a VPC with the specified IPv4 CIDR block. The smallest VPC you can create uses a /28 netmask (16 IPv4 addresses), and the largest uses a /16 netmask (65,536 IPv4 addresses). For more information about how large to make your VPC, see Your VPC and subnets in the Amazon Virtual Private Cloud User Guide.
You can optionally request an IPv6 CIDR block for the VPC. You can request an Amazon-provided IPv6 CIDR block from Amazon’s pool of IPv6 addresses, or an IPv6 CIDR block from an IPv6 address pool that you provisioned through bring your own IP addresses (BYOIP).
By default, each instance you launch in the VPC has the default DHCP options, which include only a default DNS server that we provide (AmazonProvidedDNS). For more information, see DHCP options sets in the Amazon Virtual Private Cloud User Guide.
You can specify the instance tenancy value for the VPC when you create it. You can’t change this value for the VPC after you create it. For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2CreateVpcRequest
See
AWSEC2CreateVpcResult
Declaration
Objective-C
- (void)createVpc:(nonnull AWSEC2CreateVpcRequest *)request completionHandler:(void (^_Nullable)(AWSEC2CreateVpcResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createVpc(_ request: AWSEC2CreateVpcRequest) async throws -> AWSEC2CreateVpcResultParameters
requestA container for the necessary parameters to execute the CreateVpc service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a VPC endpoint for a specified service. An endpoint enables you to create a private connection between your VPC and the service. The service may be provided by Amazon Web Services, an Amazon Web Services Marketplace Partner, or another Amazon Web Services account. For more information, see the Amazon Web Services PrivateLink Guide.
See
AWSEC2CreateVpcEndpointRequest
See
AWSEC2CreateVpcEndpointResult
Declaration
Objective-C
- (id)createVpcEndpoint:(nonnull AWSEC2CreateVpcEndpointRequest *)request;Swift
func createVpcEndpoint(_ request: AWSEC2CreateVpcEndpointRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateVpcEndpoint service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateVpcEndpointResult. -
Creates a VPC endpoint for a specified service. An endpoint enables you to create a private connection between your VPC and the service. The service may be provided by Amazon Web Services, an Amazon Web Services Marketplace Partner, or another Amazon Web Services account. For more information, see the Amazon Web Services PrivateLink Guide.
See
AWSEC2CreateVpcEndpointRequest
See
AWSEC2CreateVpcEndpointResult
Declaration
Objective-C
- (void)createVpcEndpoint:(nonnull AWSEC2CreateVpcEndpointRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateVpcEndpointResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createVpcEndpoint(_ request: AWSEC2CreateVpcEndpointRequest) async throws -> AWSEC2CreateVpcEndpointResultParameters
requestA container for the necessary parameters to execute the CreateVpcEndpoint service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.
You can create a connection notification for interface endpoints only.
See
AWSEC2CreateVpcEndpointConnectionNotificationRequest
See
AWSEC2CreateVpcEndpointConnectionNotificationResult
Declaration
Objective-C
- (id)createVpcEndpointConnectionNotification: (nonnull AWSEC2CreateVpcEndpointConnectionNotificationRequest *)request;Swift
func createVpcEndpointConnectionNotification(_ request: AWSEC2CreateVpcEndpointConnectionNotificationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateVpcEndpointConnectionNotification service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateVpcEndpointConnectionNotificationResult. -
Creates a connection notification for a specified VPC endpoint or VPC endpoint service. A connection notification notifies you of specific endpoint events. You must create an SNS topic to receive notifications. For more information, see Create a Topic in the Amazon Simple Notification Service Developer Guide.
You can create a connection notification for interface endpoints only.
See
AWSEC2CreateVpcEndpointConnectionNotificationRequest
See
AWSEC2CreateVpcEndpointConnectionNotificationResult
Declaration
Objective-C
- (void) createVpcEndpointConnectionNotification: (nonnull AWSEC2CreateVpcEndpointConnectionNotificationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateVpcEndpointConnectionNotificationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createVpcEndpointConnectionNotification(_ request: AWSEC2CreateVpcEndpointConnectionNotificationRequest) async throws -> AWSEC2CreateVpcEndpointConnectionNotificationResultParameters
requestA container for the necessary parameters to execute the CreateVpcEndpointConnectionNotification service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a VPC endpoint service to which service consumers (Amazon Web Services accounts, IAM users, and IAM roles) can connect.
Before you create an endpoint service, you must create one of the following for your service:
A Network Load Balancer. Service consumers connect to your service using an interface endpoint.
A Gateway Load Balancer. Service consumers connect to your service using a Gateway Load Balancer endpoint.
If you set the private DNS name, you must prove that you own the private DNS domain name.
For more information, see the Amazon Web Services PrivateLink Guide.
See
AWSEC2CreateVpcEndpointServiceConfigurationRequest
See
AWSEC2CreateVpcEndpointServiceConfigurationResult
Declaration
Objective-C
- (id)createVpcEndpointServiceConfiguration: (nonnull AWSEC2CreateVpcEndpointServiceConfigurationRequest *)request;Swift
func createVpcEndpointServiceConfiguration(_ request: AWSEC2CreateVpcEndpointServiceConfigurationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateVpcEndpointServiceConfiguration service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateVpcEndpointServiceConfigurationResult. -
Creates a VPC endpoint service to which service consumers (Amazon Web Services accounts, IAM users, and IAM roles) can connect.
Before you create an endpoint service, you must create one of the following for your service:
A Network Load Balancer. Service consumers connect to your service using an interface endpoint.
A Gateway Load Balancer. Service consumers connect to your service using a Gateway Load Balancer endpoint.
If you set the private DNS name, you must prove that you own the private DNS domain name.
For more information, see the Amazon Web Services PrivateLink Guide.
See
AWSEC2CreateVpcEndpointServiceConfigurationRequest
See
AWSEC2CreateVpcEndpointServiceConfigurationResult
Declaration
Objective-C
- (void) createVpcEndpointServiceConfiguration: (nonnull AWSEC2CreateVpcEndpointServiceConfigurationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateVpcEndpointServiceConfigurationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createVpcEndpointServiceConfiguration(_ request: AWSEC2CreateVpcEndpointServiceConfigurationRequest) async throws -> AWSEC2CreateVpcEndpointServiceConfigurationResultParameters
requestA container for the necessary parameters to execute the CreateVpcEndpointServiceConfiguration service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. The accepter VPC can belong to another Amazon Web Services account and can be in a different Region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.
Limitations and rules apply to a VPC peering connection. For more information, see the limitations section in the VPC Peering Guide.
The owner of the accepter VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.
If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of
failed.See
AWSEC2CreateVpcPeeringConnectionRequest
See
AWSEC2CreateVpcPeeringConnectionResult
Declaration
Objective-C
- (id)createVpcPeeringConnection: (nonnull AWSEC2CreateVpcPeeringConnectionRequest *)request;Swift
func createVpcPeeringConnection(_ request: AWSEC2CreateVpcPeeringConnectionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateVpcPeeringConnection service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateVpcPeeringConnectionResult. -
Requests a VPC peering connection between two VPCs: a requester VPC that you own and an accepter VPC with which to create the connection. The accepter VPC can belong to another Amazon Web Services account and can be in a different Region to the requester VPC. The requester VPC and accepter VPC cannot have overlapping CIDR blocks.
Limitations and rules apply to a VPC peering connection. For more information, see the limitations section in the VPC Peering Guide.
The owner of the accepter VPC must accept the peering request to activate the peering connection. The VPC peering connection request expires after 7 days, after which it cannot be accepted or rejected.
If you create a VPC peering connection request between VPCs with overlapping CIDR blocks, the VPC peering connection has a status of
failed.See
AWSEC2CreateVpcPeeringConnectionRequest
See
AWSEC2CreateVpcPeeringConnectionResult
Declaration
Objective-C
- (void)createVpcPeeringConnection: (nonnull AWSEC2CreateVpcPeeringConnectionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2CreateVpcPeeringConnectionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createVpcPeeringConnection(_ request: AWSEC2CreateVpcPeeringConnectionRequest) async throws -> AWSEC2CreateVpcPeeringConnectionResultParameters
requestA container for the necessary parameters to execute the CreateVpcPeeringConnection service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a VPN connection between an existing virtual private gateway or transit gateway and a customer gateway. The supported connection type is
ipsec.1.The response includes information that you need to give to your network administrator to configure your customer gateway.
We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway device.
If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2CreateVpnConnectionRequest
See
AWSEC2CreateVpnConnectionResult
Declaration
Objective-C
- (id)createVpnConnection:(nonnull AWSEC2CreateVpnConnectionRequest *)request;Swift
func createVpnConnection(_ request: AWSEC2CreateVpnConnectionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateVpnConnection service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateVpnConnectionResult. -
Creates a VPN connection between an existing virtual private gateway or transit gateway and a customer gateway. The supported connection type is
ipsec.1.The response includes information that you need to give to your network administrator to configure your customer gateway.
We strongly recommend that you use HTTPS when calling this operation because the response contains sensitive cryptographic information for configuring your customer gateway device.
If you decide to shut down your VPN connection for any reason and later create a new VPN connection, you must reconfigure your customer gateway with the new information returned from this call.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2CreateVpnConnectionRequest
See
AWSEC2CreateVpnConnectionResult
Declaration
Objective-C
- (void)createVpnConnection:(nonnull AWSEC2CreateVpnConnectionRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateVpnConnectionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createVpnConnection(_ request: AWSEC2CreateVpnConnectionRequest) async throws -> AWSEC2CreateVpnConnectionResultParameters
requestA container for the necessary parameters to execute the CreateVpnConnection service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2CreateVpnConnectionRouteRequest
Declaration
Objective-C
- (id)createVpnConnectionRoute: (nonnull AWSEC2CreateVpnConnectionRouteRequest *)request;Swift
func createVpnConnectionRoute(_ request: AWSEC2CreateVpnConnectionRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateVpnConnectionRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Creates a static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2CreateVpnConnectionRouteRequest
Declaration
Objective-C
- (void)createVpnConnectionRoute: (nonnull AWSEC2CreateVpnConnectionRouteRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func createVpnConnectionRoute(_ request: AWSEC2CreateVpnConnectionRouteRequest) async throwsParameters
requestA container for the necessary parameters to execute the CreateVpnConnectionRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2CreateVpnGatewayRequest
See
AWSEC2CreateVpnGatewayResult
Declaration
Objective-C
- (id)createVpnGateway:(nonnull AWSEC2CreateVpnGatewayRequest *)request;Swift
func createVpnGateway(_ request: AWSEC2CreateVpnGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the CreateVpnGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2CreateVpnGatewayResult. -
Creates a virtual private gateway. A virtual private gateway is the endpoint on the VPC side of your VPN connection. You can create a virtual private gateway before creating the VPC itself.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2CreateVpnGatewayRequest
See
AWSEC2CreateVpnGatewayResult
Declaration
Objective-C
- (void)createVpnGateway:(nonnull AWSEC2CreateVpnGatewayRequest *)request completionHandler: (void (^_Nullable)(AWSEC2CreateVpnGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func createVpnGateway(_ request: AWSEC2CreateVpnGatewayRequest) async throws -> AWSEC2CreateVpnGatewayResultParameters
requestA container for the necessary parameters to execute the CreateVpnGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes a carrier gateway.
If you do not delete the route that contains the carrier gateway as the Target, the route is a blackhole route. For information about how to delete a route, see DeleteRoute.
See
AWSEC2DeleteCarrierGatewayRequest
See
AWSEC2DeleteCarrierGatewayResult
Declaration
Objective-C
- (id)deleteCarrierGateway:(nonnull AWSEC2DeleteCarrierGatewayRequest *)request;Swift
func deleteCarrierGateway(_ request: AWSEC2DeleteCarrierGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteCarrierGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteCarrierGatewayResult. -
Deletes a carrier gateway.
If you do not delete the route that contains the carrier gateway as the Target, the route is a blackhole route. For information about how to delete a route, see DeleteRoute.
See
AWSEC2DeleteCarrierGatewayRequest
See
AWSEC2DeleteCarrierGatewayResult
Declaration
Objective-C
- (void)deleteCarrierGateway: (nonnull AWSEC2DeleteCarrierGatewayRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeleteCarrierGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteCarrierGateway(_ request: AWSEC2DeleteCarrierGatewayRequest) async throws -> AWSEC2DeleteCarrierGatewayResultParameters
requestA container for the necessary parameters to execute the DeleteCarrierGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint.
See
AWSEC2DeleteClientVpnEndpointRequest
See
AWSEC2DeleteClientVpnEndpointResult
Declaration
Objective-C
- (id)deleteClientVpnEndpoint: (nonnull AWSEC2DeleteClientVpnEndpointRequest *)request;Swift
func deleteClientVpnEndpoint(_ request: AWSEC2DeleteClientVpnEndpointRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteClientVpnEndpoint service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteClientVpnEndpointResult. -
Deletes the specified Client VPN endpoint. You must disassociate all target networks before you can delete a Client VPN endpoint.
See
AWSEC2DeleteClientVpnEndpointRequest
See
AWSEC2DeleteClientVpnEndpointResult
Declaration
Objective-C
- (void) deleteClientVpnEndpoint: (nonnull AWSEC2DeleteClientVpnEndpointRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeleteClientVpnEndpointResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteClientVpnEndpoint(_ request: AWSEC2DeleteClientVpnEndpointRequest) async throws -> AWSEC2DeleteClientVpnEndpointResultParameters
requestA container for the necessary parameters to execute the DeleteClientVpnEndpoint service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using the CreateClientVpnRoute action. You cannot delete routes that were automatically added when associating a subnet. To remove routes that have been automatically added, disassociate the target subnet from the Client VPN endpoint.
See
AWSEC2DeleteClientVpnRouteRequest
See
AWSEC2DeleteClientVpnRouteResult
Declaration
Objective-C
- (id)deleteClientVpnRoute:(nonnull AWSEC2DeleteClientVpnRouteRequest *)request;Swift
func deleteClientVpnRoute(_ request: AWSEC2DeleteClientVpnRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteClientVpnRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteClientVpnRouteResult. -
Deletes a route from a Client VPN endpoint. You can only delete routes that you manually added using the CreateClientVpnRoute action. You cannot delete routes that were automatically added when associating a subnet. To remove routes that have been automatically added, disassociate the target subnet from the Client VPN endpoint.
See
AWSEC2DeleteClientVpnRouteRequest
See
AWSEC2DeleteClientVpnRouteResult
Declaration
Objective-C
- (void)deleteClientVpnRoute: (nonnull AWSEC2DeleteClientVpnRouteRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeleteClientVpnRouteResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteClientVpnRoute(_ request: AWSEC2DeleteClientVpnRouteRequest) async throws -> AWSEC2DeleteClientVpnRouteResultParameters
requestA container for the necessary parameters to execute the DeleteClientVpnRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.
See
AWSEC2DeleteCustomerGatewayRequest
Declaration
Objective-C
- (id)deleteCustomerGateway: (nonnull AWSEC2DeleteCustomerGatewayRequest *)request;Swift
func deleteCustomerGateway(_ request: AWSEC2DeleteCustomerGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteCustomerGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified customer gateway. You must delete the VPN connection before you can delete the customer gateway.
See
AWSEC2DeleteCustomerGatewayRequest
Declaration
Objective-C
- (void)deleteCustomerGateway: (nonnull AWSEC2DeleteCustomerGatewayRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteCustomerGateway(_ request: AWSEC2DeleteCustomerGatewayRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteCustomerGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.
See
AWSEC2DeleteDhcpOptionsRequest
Declaration
Objective-C
- (id)deleteDhcpOptions:(nonnull AWSEC2DeleteDhcpOptionsRequest *)request;Swift
func deleteDhcpOptions(_ request: AWSEC2DeleteDhcpOptionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteDhcpOptions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified set of DHCP options. You must disassociate the set of DHCP options before you can delete it. You can disassociate the set of DHCP options by associating either a new set of options or the default set of options with the VPC.
See
AWSEC2DeleteDhcpOptionsRequest
Declaration
Objective-C
- (void)deleteDhcpOptions:(nonnull AWSEC2DeleteDhcpOptionsRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteDhcpOptions(_ request: AWSEC2DeleteDhcpOptionsRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteDhcpOptions service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes an egress-only internet gateway.
See
AWSEC2DeleteEgressOnlyInternetGatewayRequest
See
AWSEC2DeleteEgressOnlyInternetGatewayResult
Declaration
Objective-C
- (id)deleteEgressOnlyInternetGateway: (nonnull AWSEC2DeleteEgressOnlyInternetGatewayRequest *)request;Swift
func deleteEgressOnlyInternetGateway(_ request: AWSEC2DeleteEgressOnlyInternetGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteEgressOnlyInternetGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteEgressOnlyInternetGatewayResult. -
Deletes an egress-only internet gateway.
See
AWSEC2DeleteEgressOnlyInternetGatewayRequest
See
AWSEC2DeleteEgressOnlyInternetGatewayResult
Declaration
Objective-C
- (void)deleteEgressOnlyInternetGateway: (nonnull AWSEC2DeleteEgressOnlyInternetGatewayRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteEgressOnlyInternetGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteEgressOnlyInternetGateway(_ request: AWSEC2DeleteEgressOnlyInternetGatewayRequest) async throws -> AWSEC2DeleteEgressOnlyInternetGatewayResultParameters
requestA container for the necessary parameters to execute the DeleteEgressOnlyInternetGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified EC2 Fleet.
After you delete an EC2 Fleet, it launches no new instances.
You must specify whether a deleted EC2 Fleet should also terminate its instances. If you choose to terminate the instances, the EC2 Fleet enters the
deleted_terminatingstate. Otherwise, the EC2 Fleet enters thedeleted_runningstate, and the instances continue to run until they are interrupted or you terminate them manually.For
instantfleets, EC2 Fleet must terminate the instances when the fleet is deleted. A deletedinstantfleet with running instances is not supported.Restrictions
You can delete up to 25
instantfleets in a single request. If you exceed this number, noinstantfleets are deleted and an error is returned. There is no restriction on the number of fleets of typemaintainorrequestthat can be deleted in a single request.Up to 1000 instances can be terminated in a single request to delete
instantfleets.
For more information, see Delete an EC2 Fleet in the Amazon EC2 User Guide.
See
AWSEC2DeleteFleetsRequest
See
AWSEC2DeleteFleetsResult
Declaration
Objective-C
- (id)deleteFleets:(nonnull AWSEC2DeleteFleetsRequest *)request;Swift
func deleteFleets(_ request: AWSEC2DeleteFleetsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteFleets service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteFleetsResult. -
Deletes the specified EC2 Fleet.
After you delete an EC2 Fleet, it launches no new instances.
You must specify whether a deleted EC2 Fleet should also terminate its instances. If you choose to terminate the instances, the EC2 Fleet enters the
deleted_terminatingstate. Otherwise, the EC2 Fleet enters thedeleted_runningstate, and the instances continue to run until they are interrupted or you terminate them manually.For
instantfleets, EC2 Fleet must terminate the instances when the fleet is deleted. A deletedinstantfleet with running instances is not supported.Restrictions
You can delete up to 25
instantfleets in a single request. If you exceed this number, noinstantfleets are deleted and an error is returned. There is no restriction on the number of fleets of typemaintainorrequestthat can be deleted in a single request.Up to 1000 instances can be terminated in a single request to delete
instantfleets.
For more information, see Delete an EC2 Fleet in the Amazon EC2 User Guide.
See
AWSEC2DeleteFleetsRequest
See
AWSEC2DeleteFleetsResult
Declaration
Objective-C
- (void)deleteFleets:(nonnull AWSEC2DeleteFleetsRequest *)request completionHandler:(void (^_Nullable)(AWSEC2DeleteFleetsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteFleets(_ request: AWSEC2DeleteFleetsRequest) async throws -> AWSEC2DeleteFleetsResultParameters
requestA container for the necessary parameters to execute the DeleteFleets service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes one or more flow logs.
See
AWSEC2DeleteFlowLogsRequest
See
AWSEC2DeleteFlowLogsResult
Declaration
Objective-C
- (id)deleteFlowLogs:(nonnull AWSEC2DeleteFlowLogsRequest *)request;Swift
func deleteFlowLogs(_ request: AWSEC2DeleteFlowLogsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteFlowLogs service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteFlowLogsResult. -
Deletes one or more flow logs.
See
AWSEC2DeleteFlowLogsRequest
See
AWSEC2DeleteFlowLogsResult
Declaration
Objective-C
- (void)deleteFlowLogs:(nonnull AWSEC2DeleteFlowLogsRequest *)request completionHandler:(void (^_Nullable)(AWSEC2DeleteFlowLogsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteFlowLogs(_ request: AWSEC2DeleteFlowLogsRequest) async throws -> AWSEC2DeleteFlowLogsResultParameters
requestA container for the necessary parameters to execute the DeleteFlowLogs service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified Amazon FPGA Image (AFI).
See
AWSEC2DeleteFpgaImageRequest
See
AWSEC2DeleteFpgaImageResult
Declaration
Objective-C
- (id)deleteFpgaImage:(nonnull AWSEC2DeleteFpgaImageRequest *)request;Swift
func deleteFpgaImage(_ request: AWSEC2DeleteFpgaImageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteFpgaImage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteFpgaImageResult. -
Deletes the specified Amazon FPGA Image (AFI).
See
AWSEC2DeleteFpgaImageRequest
See
AWSEC2DeleteFpgaImageResult
Declaration
Objective-C
- (void)deleteFpgaImage:(nonnull AWSEC2DeleteFpgaImageRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeleteFpgaImageResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteFpgaImage(_ request: AWSEC2DeleteFpgaImageRequest) async throws -> AWSEC2DeleteFpgaImageResultParameters
requestA container for the necessary parameters to execute the DeleteFpgaImage service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified event window.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2DeleteInstanceEventWindowRequest
See
AWSEC2DeleteInstanceEventWindowResult
Declaration
Objective-C
- (id)deleteInstanceEventWindow: (nonnull AWSEC2DeleteInstanceEventWindowRequest *)request;Swift
func deleteInstanceEventWindow(_ request: AWSEC2DeleteInstanceEventWindowRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteInstanceEventWindow service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteInstanceEventWindowResult. -
Deletes the specified event window.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2DeleteInstanceEventWindowRequest
See
AWSEC2DeleteInstanceEventWindowResult
Declaration
Objective-C
- (void)deleteInstanceEventWindow: (nonnull AWSEC2DeleteInstanceEventWindowRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteInstanceEventWindowResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteInstanceEventWindow(_ request: AWSEC2DeleteInstanceEventWindowRequest) async throws -> AWSEC2DeleteInstanceEventWindowResultParameters
requestA container for the necessary parameters to execute the DeleteInstanceEventWindow service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.
See
AWSEC2DeleteInternetGatewayRequest
Declaration
Objective-C
- (id)deleteInternetGateway: (nonnull AWSEC2DeleteInternetGatewayRequest *)request;Swift
func deleteInternetGateway(_ request: AWSEC2DeleteInternetGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteInternetGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified internet gateway. You must detach the internet gateway from the VPC before you can delete it.
See
AWSEC2DeleteInternetGatewayRequest
Declaration
Objective-C
- (void)deleteInternetGateway: (nonnull AWSEC2DeleteInternetGatewayRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteInternetGateway(_ request: AWSEC2DeleteInternetGatewayRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteInternetGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Delete an IPAM. Deleting an IPAM removes all monitored data associated with the IPAM including the historical data for CIDRs.
For more information, see Delete an IPAM in the Amazon VPC IPAM User Guide.
See
AWSEC2DeleteIpamRequest
See
AWSEC2DeleteIpamResult
Declaration
Objective-C
- (id)deleteIpam:(nonnull AWSEC2DeleteIpamRequest *)request;Swift
func deleteIpam(_ request: AWSEC2DeleteIpamRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteIpam service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteIpamResult. -
Delete an IPAM. Deleting an IPAM removes all monitored data associated with the IPAM including the historical data for CIDRs.
For more information, see Delete an IPAM in the Amazon VPC IPAM User Guide.
See
AWSEC2DeleteIpamRequest
See
AWSEC2DeleteIpamResult
Declaration
Objective-C
- (void)deleteIpam:(nonnull AWSEC2DeleteIpamRequest *)request completionHandler:(void (^_Nullable)(AWSEC2DeleteIpamResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteIpam(_ request: AWSEC2DeleteIpamRequest) async throws -> AWSEC2DeleteIpamResultParameters
requestA container for the necessary parameters to execute the DeleteIpam service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Delete an IPAM pool.
You cannot delete an IPAM pool if there are allocations in it or CIDRs provisioned to it. To release allocations, see ReleaseIpamPoolAllocation. To deprovision pool CIDRs, see DeprovisionIpamPoolCidr.
For more information, see Delete a pool in the Amazon VPC IPAM User Guide.
See
AWSEC2DeleteIpamPoolRequest
See
AWSEC2DeleteIpamPoolResult
Declaration
Objective-C
- (id)deleteIpamPool:(nonnull AWSEC2DeleteIpamPoolRequest *)request;Swift
func deleteIpamPool(_ request: AWSEC2DeleteIpamPoolRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteIpamPool service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteIpamPoolResult. -
Delete an IPAM pool.
You cannot delete an IPAM pool if there are allocations in it or CIDRs provisioned to it. To release allocations, see ReleaseIpamPoolAllocation. To deprovision pool CIDRs, see DeprovisionIpamPoolCidr.
For more information, see Delete a pool in the Amazon VPC IPAM User Guide.
See
AWSEC2DeleteIpamPoolRequest
See
AWSEC2DeleteIpamPoolResult
Declaration
Objective-C
- (void)deleteIpamPool:(nonnull AWSEC2DeleteIpamPoolRequest *)request completionHandler:(void (^_Nullable)(AWSEC2DeleteIpamPoolResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteIpamPool(_ request: AWSEC2DeleteIpamPoolRequest) async throws -> AWSEC2DeleteIpamPoolResultParameters
requestA container for the necessary parameters to execute the DeleteIpamPool service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Delete the scope for an IPAM. You cannot delete the default scopes.
For more information, see Delete a scope in the Amazon VPC IPAM User Guide.
See
AWSEC2DeleteIpamScopeRequest
See
AWSEC2DeleteIpamScopeResult
Declaration
Objective-C
- (id)deleteIpamScope:(nonnull AWSEC2DeleteIpamScopeRequest *)request;Swift
func deleteIpamScope(_ request: AWSEC2DeleteIpamScopeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteIpamScope service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteIpamScopeResult. -
Delete the scope for an IPAM. You cannot delete the default scopes.
For more information, see Delete a scope in the Amazon VPC IPAM User Guide.
See
AWSEC2DeleteIpamScopeRequest
See
AWSEC2DeleteIpamScopeResult
Declaration
Objective-C
- (void)deleteIpamScope:(nonnull AWSEC2DeleteIpamScopeRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeleteIpamScopeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteIpamScope(_ request: AWSEC2DeleteIpamScopeRequest) async throws -> AWSEC2DeleteIpamScopeResultParameters
requestA container for the necessary parameters to execute the DeleteIpamScope service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified key pair, by removing the public key from Amazon EC2.
See
AWSEC2DeleteKeyPairRequest
Declaration
Objective-C
- (id)deleteKeyPair:(nonnull AWSEC2DeleteKeyPairRequest *)request;Swift
func deleteKeyPair(_ request: AWSEC2DeleteKeyPairRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteKeyPair service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified key pair, by removing the public key from Amazon EC2.
See
AWSEC2DeleteKeyPairRequest
Declaration
Objective-C
- (void)deleteKeyPair:(nonnull AWSEC2DeleteKeyPairRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteKeyPair(_ request: AWSEC2DeleteKeyPairRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteKeyPair service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes a launch template. Deleting a launch template deletes all of its versions.
See
AWSEC2DeleteLaunchTemplateRequest
See
AWSEC2DeleteLaunchTemplateResult
Declaration
Objective-C
- (id)deleteLaunchTemplate:(nonnull AWSEC2DeleteLaunchTemplateRequest *)request;Swift
func deleteLaunchTemplate(_ request: AWSEC2DeleteLaunchTemplateRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteLaunchTemplate service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteLaunchTemplateResult. -
Deletes a launch template. Deleting a launch template deletes all of its versions.
See
AWSEC2DeleteLaunchTemplateRequest
See
AWSEC2DeleteLaunchTemplateResult
Declaration
Objective-C
- (void)deleteLaunchTemplate: (nonnull AWSEC2DeleteLaunchTemplateRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeleteLaunchTemplateResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteLaunchTemplate(_ request: AWSEC2DeleteLaunchTemplateRequest) async throws -> AWSEC2DeleteLaunchTemplateResultParameters
requestA container for the necessary parameters to execute the DeleteLaunchTemplate service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes one or more versions of a launch template. You cannot delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate.
See
AWSEC2DeleteLaunchTemplateVersionsRequest
See
AWSEC2DeleteLaunchTemplateVersionsResult
Declaration
Objective-C
- (id)deleteLaunchTemplateVersions: (nonnull AWSEC2DeleteLaunchTemplateVersionsRequest *)request;Swift
func deleteLaunchTemplateVersions(_ request: AWSEC2DeleteLaunchTemplateVersionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteLaunchTemplateVersions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteLaunchTemplateVersionsResult. -
Deletes one or more versions of a launch template. You cannot delete the default version of a launch template; you must first assign a different version as the default. If the default version is the only version for the launch template, you must delete the entire launch template using DeleteLaunchTemplate.
See
AWSEC2DeleteLaunchTemplateVersionsRequest
See
AWSEC2DeleteLaunchTemplateVersionsResult
Declaration
Objective-C
- (void)deleteLaunchTemplateVersions: (nonnull AWSEC2DeleteLaunchTemplateVersionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteLaunchTemplateVersionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteLaunchTemplateVersions(_ request: AWSEC2DeleteLaunchTemplateVersionsRequest) async throws -> AWSEC2DeleteLaunchTemplateVersionsResultParameters
requestA container for the necessary parameters to execute the DeleteLaunchTemplateVersions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified route from the specified local gateway route table.
See
AWSEC2DeleteLocalGatewayRouteRequest
See
AWSEC2DeleteLocalGatewayRouteResult
Declaration
Objective-C
- (id)deleteLocalGatewayRoute: (nonnull AWSEC2DeleteLocalGatewayRouteRequest *)request;Swift
func deleteLocalGatewayRoute(_ request: AWSEC2DeleteLocalGatewayRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteLocalGatewayRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteLocalGatewayRouteResult. -
Deletes the specified route from the specified local gateway route table.
See
AWSEC2DeleteLocalGatewayRouteRequest
See
AWSEC2DeleteLocalGatewayRouteResult
Declaration
Objective-C
- (void) deleteLocalGatewayRoute: (nonnull AWSEC2DeleteLocalGatewayRouteRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeleteLocalGatewayRouteResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteLocalGatewayRoute(_ request: AWSEC2DeleteLocalGatewayRouteRequest) async throws -> AWSEC2DeleteLocalGatewayRouteResultParameters
requestA container for the necessary parameters to execute the DeleteLocalGatewayRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified association between a VPC and local gateway route table.
See
AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest
See
AWSEC2DeleteLocalGatewayRouteTableVpcAssociationResult
Declaration
Objective-C
- (id)deleteLocalGatewayRouteTableVpcAssociation: (nonnull AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest *)request;Swift
func deleteLocalGatewayRouteTableVpcAssociation(_ request: AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteLocalGatewayRouteTableVpcAssociation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteLocalGatewayRouteTableVpcAssociationResult. -
Deletes the specified association between a VPC and local gateway route table.
See
AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest
See
AWSEC2DeleteLocalGatewayRouteTableVpcAssociationResult
Declaration
Objective-C
- (void) deleteLocalGatewayRouteTableVpcAssociation: (nonnull AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest *) request completionHandler: (void (^_Nullable)( AWSEC2DeleteLocalGatewayRouteTableVpcAssociationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteLocalGatewayRouteTableVpcAssociation(_ request: AWSEC2DeleteLocalGatewayRouteTableVpcAssociationRequest) async throws -> AWSEC2DeleteLocalGatewayRouteTableVpcAssociationResultParameters
requestA container for the necessary parameters to execute the DeleteLocalGatewayRouteTableVpcAssociation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified managed prefix list. You must first remove all references to the prefix list in your resources.
See
AWSEC2DeleteManagedPrefixListRequest
See
AWSEC2DeleteManagedPrefixListResult
Declaration
Objective-C
- (id)deleteManagedPrefixList: (nonnull AWSEC2DeleteManagedPrefixListRequest *)request;Swift
func deleteManagedPrefixList(_ request: AWSEC2DeleteManagedPrefixListRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteManagedPrefixList service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteManagedPrefixListResult. -
Deletes the specified managed prefix list. You must first remove all references to the prefix list in your resources.
See
AWSEC2DeleteManagedPrefixListRequest
See
AWSEC2DeleteManagedPrefixListResult
Declaration
Objective-C
- (void) deleteManagedPrefixList: (nonnull AWSEC2DeleteManagedPrefixListRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeleteManagedPrefixListResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteManagedPrefixList(_ request: AWSEC2DeleteManagedPrefixListRequest) async throws -> AWSEC2DeleteManagedPrefixListResultParameters
requestA container for the necessary parameters to execute the DeleteManagedPrefixList service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified NAT gateway. Deleting a public NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables.
See
AWSEC2DeleteNatGatewayRequest
See
AWSEC2DeleteNatGatewayResult
Declaration
Objective-C
- (id)deleteNatGateway:(nonnull AWSEC2DeleteNatGatewayRequest *)request;Swift
func deleteNatGateway(_ request: AWSEC2DeleteNatGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteNatGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteNatGatewayResult. -
Deletes the specified NAT gateway. Deleting a public NAT gateway disassociates its Elastic IP address, but does not release the address from your account. Deleting a NAT gateway does not delete any NAT gateway routes in your route tables.
See
AWSEC2DeleteNatGatewayRequest
See
AWSEC2DeleteNatGatewayResult
Declaration
Objective-C
- (void)deleteNatGateway:(nonnull AWSEC2DeleteNatGatewayRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeleteNatGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteNatGateway(_ request: AWSEC2DeleteNatGatewayRequest) async throws -> AWSEC2DeleteNatGatewayResultParameters
requestA container for the necessary parameters to execute the DeleteNatGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified network ACL. You can’t delete the ACL if it’s associated with any subnets. You can’t delete the default network ACL.
See
AWSEC2DeleteNetworkAclRequest
Declaration
Objective-C
- (id)deleteNetworkAcl:(nonnull AWSEC2DeleteNetworkAclRequest *)request;Swift
func deleteNetworkAcl(_ request: AWSEC2DeleteNetworkAclRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteNetworkAcl service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified network ACL. You can’t delete the ACL if it’s associated with any subnets. You can’t delete the default network ACL.
See
AWSEC2DeleteNetworkAclRequest
Declaration
Objective-C
- (void)deleteNetworkAcl:(nonnull AWSEC2DeleteNetworkAclRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteNetworkAcl(_ request: AWSEC2DeleteNetworkAclRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteNetworkAcl service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified ingress or egress entry (rule) from the specified network ACL.
See
AWSEC2DeleteNetworkAclEntryRequest
Declaration
Objective-C
- (id)deleteNetworkAclEntry: (nonnull AWSEC2DeleteNetworkAclEntryRequest *)request;Swift
func deleteNetworkAclEntry(_ request: AWSEC2DeleteNetworkAclEntryRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteNetworkAclEntry service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified ingress or egress entry (rule) from the specified network ACL.
See
AWSEC2DeleteNetworkAclEntryRequest
Declaration
Objective-C
- (void)deleteNetworkAclEntry: (nonnull AWSEC2DeleteNetworkAclEntryRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteNetworkAclEntry(_ request: AWSEC2DeleteNetworkAclEntryRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteNetworkAclEntry service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified Network Access Scope.
See
AWSEC2DeleteNetworkInsightsAccessScopeRequest
See
AWSEC2DeleteNetworkInsightsAccessScopeResult
Declaration
Objective-C
- (id)deleteNetworkInsightsAccessScope: (nonnull AWSEC2DeleteNetworkInsightsAccessScopeRequest *)request;Swift
func deleteNetworkInsightsAccessScope(_ request: AWSEC2DeleteNetworkInsightsAccessScopeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteNetworkInsightsAccessScope service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteNetworkInsightsAccessScopeResult. -
Deletes the specified Network Access Scope.
See
AWSEC2DeleteNetworkInsightsAccessScopeRequest
See
AWSEC2DeleteNetworkInsightsAccessScopeResult
Declaration
Objective-C
- (void)deleteNetworkInsightsAccessScope: (nonnull AWSEC2DeleteNetworkInsightsAccessScopeRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteNetworkInsightsAccessScopeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteNetworkInsightsAccessScope(_ request: AWSEC2DeleteNetworkInsightsAccessScopeRequest) async throws -> AWSEC2DeleteNetworkInsightsAccessScopeResultParameters
requestA container for the necessary parameters to execute the DeleteNetworkInsightsAccessScope service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified Network Access Scope analysis.
See
AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest
See
AWSEC2DeleteNetworkInsightsAccessScopeAnalysisResult
Declaration
Objective-C
- (id)deleteNetworkInsightsAccessScopeAnalysis: (nonnull AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest *)request;Swift
func deleteNetworkInsightsAccessScopeAnalysis(_ request: AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteNetworkInsightsAccessScopeAnalysis service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteNetworkInsightsAccessScopeAnalysisResult. -
Deletes the specified Network Access Scope analysis.
See
AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest
See
AWSEC2DeleteNetworkInsightsAccessScopeAnalysisResult
Declaration
Objective-C
- (void) deleteNetworkInsightsAccessScopeAnalysis: (nonnull AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteNetworkInsightsAccessScopeAnalysisResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteNetworkInsightsAccessScopeAnalysis(_ request: AWSEC2DeleteNetworkInsightsAccessScopeAnalysisRequest) async throws -> AWSEC2DeleteNetworkInsightsAccessScopeAnalysisResultParameters
requestA container for the necessary parameters to execute the DeleteNetworkInsightsAccessScopeAnalysis service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified network insights analysis.
See
AWSEC2DeleteNetworkInsightsAnalysisRequest
See
AWSEC2DeleteNetworkInsightsAnalysisResult
Declaration
Objective-C
- (id)deleteNetworkInsightsAnalysis: (nonnull AWSEC2DeleteNetworkInsightsAnalysisRequest *)request;Swift
func deleteNetworkInsightsAnalysis(_ request: AWSEC2DeleteNetworkInsightsAnalysisRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteNetworkInsightsAnalysis service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteNetworkInsightsAnalysisResult. -
Deletes the specified network insights analysis.
See
AWSEC2DeleteNetworkInsightsAnalysisRequest
See
AWSEC2DeleteNetworkInsightsAnalysisResult
Declaration
Objective-C
- (void) deleteNetworkInsightsAnalysis: (nonnull AWSEC2DeleteNetworkInsightsAnalysisRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteNetworkInsightsAnalysisResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteNetworkInsightsAnalysis(_ request: AWSEC2DeleteNetworkInsightsAnalysisRequest) async throws -> AWSEC2DeleteNetworkInsightsAnalysisResultParameters
requestA container for the necessary parameters to execute the DeleteNetworkInsightsAnalysis service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified path.
See
AWSEC2DeleteNetworkInsightsPathRequest
See
AWSEC2DeleteNetworkInsightsPathResult
Declaration
Objective-C
- (id)deleteNetworkInsightsPath: (nonnull AWSEC2DeleteNetworkInsightsPathRequest *)request;Swift
func deleteNetworkInsightsPath(_ request: AWSEC2DeleteNetworkInsightsPathRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteNetworkInsightsPath service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteNetworkInsightsPathResult. -
Deletes the specified path.
See
AWSEC2DeleteNetworkInsightsPathRequest
See
AWSEC2DeleteNetworkInsightsPathResult
Declaration
Objective-C
- (void)deleteNetworkInsightsPath: (nonnull AWSEC2DeleteNetworkInsightsPathRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteNetworkInsightsPathResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteNetworkInsightsPath(_ request: AWSEC2DeleteNetworkInsightsPathRequest) async throws -> AWSEC2DeleteNetworkInsightsPathResultParameters
requestA container for the necessary parameters to execute the DeleteNetworkInsightsPath service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified network interface. You must detach the network interface before you can delete it.
See
AWSEC2DeleteNetworkInterfaceRequest
Declaration
Objective-C
- (id)deleteNetworkInterface: (nonnull AWSEC2DeleteNetworkInterfaceRequest *)request;Swift
func deleteNetworkInterface(_ request: AWSEC2DeleteNetworkInterfaceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteNetworkInterface service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified network interface. You must detach the network interface before you can delete it.
See
AWSEC2DeleteNetworkInterfaceRequest
Declaration
Objective-C
- (void)deleteNetworkInterface: (nonnull AWSEC2DeleteNetworkInterfaceRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteNetworkInterface(_ request: AWSEC2DeleteNetworkInterfaceRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteNetworkInterface service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you’re removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment.
See
AWSEC2DeleteNetworkInterfacePermissionRequest
See
AWSEC2DeleteNetworkInterfacePermissionResult
Declaration
Objective-C
- (id)deleteNetworkInterfacePermission: (nonnull AWSEC2DeleteNetworkInterfacePermissionRequest *)request;Swift
func deleteNetworkInterfacePermission(_ request: AWSEC2DeleteNetworkInterfacePermissionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteNetworkInterfacePermission service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteNetworkInterfacePermissionResult. -
Deletes a permission for a network interface. By default, you cannot delete the permission if the account for which you’re removing the permission has attached the network interface to an instance. However, you can force delete the permission, regardless of any attachment.
See
AWSEC2DeleteNetworkInterfacePermissionRequest
See
AWSEC2DeleteNetworkInterfacePermissionResult
Declaration
Objective-C
- (void)deleteNetworkInterfacePermission: (nonnull AWSEC2DeleteNetworkInterfacePermissionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteNetworkInterfacePermissionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteNetworkInterfacePermission(_ request: AWSEC2DeleteNetworkInterfacePermissionRequest) async throws -> AWSEC2DeleteNetworkInterfacePermissionResultParameters
requestA container for the necessary parameters to execute the DeleteNetworkInterfacePermission service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see Placement groups in the Amazon EC2 User Guide.
See
AWSEC2DeletePlacementGroupRequest
Declaration
Objective-C
- (id)deletePlacementGroup:(nonnull AWSEC2DeletePlacementGroupRequest *)request;Swift
func deletePlacementGroup(_ request: AWSEC2DeletePlacementGroupRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeletePlacementGroup service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified placement group. You must terminate all instances in the placement group before you can delete the placement group. For more information, see Placement groups in the Amazon EC2 User Guide.
See
AWSEC2DeletePlacementGroupRequest
Declaration
Objective-C
- (void)deletePlacementGroup: (nonnull AWSEC2DeletePlacementGroupRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deletePlacementGroup(_ request: AWSEC2DeletePlacementGroupRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeletePlacementGroup service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Delete a public IPv4 pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only.
See
AWSEC2DeletePublicIpv4PoolRequest
See
AWSEC2DeletePublicIpv4PoolResult
Declaration
Objective-C
- (id)deletePublicIpv4Pool:(nonnull AWSEC2DeletePublicIpv4PoolRequest *)request;Swift
func deletePublicIpv4Pool(_ request: AWSEC2DeletePublicIpv4PoolRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeletePublicIpv4Pool service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeletePublicIpv4PoolResult. -
Delete a public IPv4 pool. A public IPv4 pool is an EC2 IP address pool required for the public IPv4 CIDRs that you own and bring to Amazon Web Services to manage with IPAM. IPv6 addresses you bring to Amazon Web Services, however, use IPAM pools only.
See
AWSEC2DeletePublicIpv4PoolRequest
See
AWSEC2DeletePublicIpv4PoolResult
Declaration
Objective-C
- (void)deletePublicIpv4Pool: (nonnull AWSEC2DeletePublicIpv4PoolRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeletePublicIpv4PoolResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deletePublicIpv4Pool(_ request: AWSEC2DeletePublicIpv4PoolRequest) async throws -> AWSEC2DeletePublicIpv4PoolResultParameters
requestA container for the necessary parameters to execute the DeletePublicIpv4Pool service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the queued purchases for the specified Reserved Instances.
See
AWSEC2DeleteQueuedReservedInstancesRequest
See
AWSEC2DeleteQueuedReservedInstancesResult
Declaration
Objective-C
- (id)deleteQueuedReservedInstances: (nonnull AWSEC2DeleteQueuedReservedInstancesRequest *)request;Swift
func deleteQueuedReservedInstances(_ request: AWSEC2DeleteQueuedReservedInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteQueuedReservedInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteQueuedReservedInstancesResult. -
Deletes the queued purchases for the specified Reserved Instances.
See
AWSEC2DeleteQueuedReservedInstancesRequest
See
AWSEC2DeleteQueuedReservedInstancesResult
Declaration
Objective-C
- (void) deleteQueuedReservedInstances: (nonnull AWSEC2DeleteQueuedReservedInstancesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteQueuedReservedInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteQueuedReservedInstances(_ request: AWSEC2DeleteQueuedReservedInstancesRequest) async throws -> AWSEC2DeleteQueuedReservedInstancesResultParameters
requestA container for the necessary parameters to execute the DeleteQueuedReservedInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified route from the specified route table.
See
AWSEC2DeleteRouteRequest
Declaration
Objective-C
- (id)deleteRoute:(nonnull AWSEC2DeleteRouteRequest *)request;Swift
func deleteRoute(_ request: AWSEC2DeleteRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified route from the specified route table.
See
AWSEC2DeleteRouteRequest
Declaration
Objective-C
- (void)deleteRoute:(nonnull AWSEC2DeleteRouteRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteRoute(_ request: AWSEC2DeleteRouteRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can’t delete the main route table.
See
AWSEC2DeleteRouteTableRequest
Declaration
Objective-C
- (id)deleteRouteTable:(nonnull AWSEC2DeleteRouteTableRequest *)request;Swift
func deleteRouteTable(_ request: AWSEC2DeleteRouteTableRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteRouteTable service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified route table. You must disassociate the route table from any subnets before you can delete it. You can’t delete the main route table.
See
AWSEC2DeleteRouteTableRequest
Declaration
Objective-C
- (void)deleteRouteTable:(nonnull AWSEC2DeleteRouteTableRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteRouteTable(_ request: AWSEC2DeleteRouteTableRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteRouteTable service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes a security group.
If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with
InvalidGroup.InUsein EC2-Classic orDependencyViolationin EC2-VPC.See
AWSEC2DeleteSecurityGroupRequest
Declaration
Objective-C
- (id)deleteSecurityGroup:(nonnull AWSEC2DeleteSecurityGroupRequest *)request;Swift
func deleteSecurityGroup(_ request: AWSEC2DeleteSecurityGroupRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteSecurityGroup service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes a security group.
If you attempt to delete a security group that is associated with an instance, or is referenced by another security group, the operation fails with
InvalidGroup.InUsein EC2-Classic orDependencyViolationin EC2-VPC.See
AWSEC2DeleteSecurityGroupRequest
Declaration
Objective-C
- (void)deleteSecurityGroup:(nonnull AWSEC2DeleteSecurityGroupRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteSecurityGroup(_ request: AWSEC2DeleteSecurityGroupRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteSecurityGroup service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified snapshot.
When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.
You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.
For more information, see Delete an Amazon EBS snapshot in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DeleteSnapshotRequest
Declaration
Objective-C
- (id)deleteSnapshot:(nonnull AWSEC2DeleteSnapshotRequest *)request;Swift
func deleteSnapshot(_ request: AWSEC2DeleteSnapshotRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteSnapshot service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified snapshot.
When you make periodic snapshots of a volume, the snapshots are incremental, and only the blocks on the device that have changed since your last snapshot are saved in the new snapshot. When you delete a snapshot, only the data not needed for any other snapshot is removed. So regardless of which prior snapshots have been deleted, all active snapshots will have access to all the information needed to restore the volume.
You cannot delete a snapshot of the root device of an EBS volume used by a registered AMI. You must first de-register the AMI before you can delete the snapshot.
For more information, see Delete an Amazon EBS snapshot in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DeleteSnapshotRequest
Declaration
Objective-C
- (void)deleteSnapshot:(nonnull AWSEC2DeleteSnapshotRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteSnapshot(_ request: AWSEC2DeleteSnapshotRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteSnapshot service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the data feed for Spot Instances.
See
AWSEC2DeleteSpotDatafeedSubscriptionRequest
Declaration
Objective-C
- (id)deleteSpotDatafeedSubscription: (nonnull AWSEC2DeleteSpotDatafeedSubscriptionRequest *)request;Swift
func deleteSpotDatafeedSubscription(_ request: AWSEC2DeleteSpotDatafeedSubscriptionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteSpotDatafeedSubscription service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the data feed for Spot Instances.
See
AWSEC2DeleteSpotDatafeedSubscriptionRequest
Declaration
Objective-C
- (void)deleteSpotDatafeedSubscription: (nonnull AWSEC2DeleteSpotDatafeedSubscriptionRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable)) completionHandler;Swift
func deleteSpotDatafeedSubscription(_ request: AWSEC2DeleteSpotDatafeedSubscriptionRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteSpotDatafeedSubscription service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.
See
AWSEC2DeleteSubnetRequest
Declaration
Objective-C
- (id)deleteSubnet:(nonnull AWSEC2DeleteSubnetRequest *)request;Swift
func deleteSubnet(_ request: AWSEC2DeleteSubnetRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteSubnet service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified subnet. You must terminate all running instances in the subnet before you can delete the subnet.
See
AWSEC2DeleteSubnetRequest
Declaration
Objective-C
- (void)deleteSubnet:(nonnull AWSEC2DeleteSubnetRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteSubnet(_ request: AWSEC2DeleteSubnetRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteSubnet service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes a subnet CIDR reservation.
See
AWSEC2DeleteSubnetCidrReservationRequest
See
AWSEC2DeleteSubnetCidrReservationResult
Declaration
Objective-C
- (id)deleteSubnetCidrReservation: (nonnull AWSEC2DeleteSubnetCidrReservationRequest *)request;Swift
func deleteSubnetCidrReservation(_ request: AWSEC2DeleteSubnetCidrReservationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteSubnetCidrReservation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteSubnetCidrReservationResult. -
Deletes a subnet CIDR reservation.
See
AWSEC2DeleteSubnetCidrReservationRequest
See
AWSEC2DeleteSubnetCidrReservationResult
Declaration
Objective-C
- (void)deleteSubnetCidrReservation: (nonnull AWSEC2DeleteSubnetCidrReservationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteSubnetCidrReservationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteSubnetCidrReservation(_ request: AWSEC2DeleteSubnetCidrReservationRequest) async throws -> AWSEC2DeleteSubnetCidrReservationResultParameters
requestA container for the necessary parameters to execute the DeleteSubnetCidrReservation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified set of tags from the specified set of resources.
To list the current tags, use DescribeTags. For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DeleteTagsRequest
Declaration
Objective-C
- (id)deleteTags:(nonnull AWSEC2DeleteTagsRequest *)request;Swift
func deleteTags(_ request: AWSEC2DeleteTagsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTags service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified set of tags from the specified set of resources.
To list the current tags, use DescribeTags. For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DeleteTagsRequest
Declaration
Objective-C
- (void)deleteTags:(nonnull AWSEC2DeleteTagsRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteTags(_ request: AWSEC2DeleteTagsRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteTags service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified Traffic Mirror filter.
You cannot delete a Traffic Mirror filter that is in use by a Traffic Mirror session.
See
AWSEC2DeleteTrafficMirrorFilterRequest
See
AWSEC2DeleteTrafficMirrorFilterResult
Declaration
Objective-C
- (id)deleteTrafficMirrorFilter: (nonnull AWSEC2DeleteTrafficMirrorFilterRequest *)request;Swift
func deleteTrafficMirrorFilter(_ request: AWSEC2DeleteTrafficMirrorFilterRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTrafficMirrorFilter service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTrafficMirrorFilterResult. -
Deletes the specified Traffic Mirror filter.
You cannot delete a Traffic Mirror filter that is in use by a Traffic Mirror session.
See
AWSEC2DeleteTrafficMirrorFilterRequest
See
AWSEC2DeleteTrafficMirrorFilterResult
Declaration
Objective-C
- (void)deleteTrafficMirrorFilter: (nonnull AWSEC2DeleteTrafficMirrorFilterRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTrafficMirrorFilterResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTrafficMirrorFilter(_ request: AWSEC2DeleteTrafficMirrorFilterRequest) async throws -> AWSEC2DeleteTrafficMirrorFilterResultParameters
requestA container for the necessary parameters to execute the DeleteTrafficMirrorFilter service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified Traffic Mirror rule.
See
AWSEC2DeleteTrafficMirrorFilterRuleRequest
See
AWSEC2DeleteTrafficMirrorFilterRuleResult
Declaration
Objective-C
- (id)deleteTrafficMirrorFilterRule: (nonnull AWSEC2DeleteTrafficMirrorFilterRuleRequest *)request;Swift
func deleteTrafficMirrorFilterRule(_ request: AWSEC2DeleteTrafficMirrorFilterRuleRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTrafficMirrorFilterRule service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTrafficMirrorFilterRuleResult. -
Deletes the specified Traffic Mirror rule.
See
AWSEC2DeleteTrafficMirrorFilterRuleRequest
See
AWSEC2DeleteTrafficMirrorFilterRuleResult
Declaration
Objective-C
- (void) deleteTrafficMirrorFilterRule: (nonnull AWSEC2DeleteTrafficMirrorFilterRuleRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTrafficMirrorFilterRuleResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTrafficMirrorFilterRule(_ request: AWSEC2DeleteTrafficMirrorFilterRuleRequest) async throws -> AWSEC2DeleteTrafficMirrorFilterRuleResultParameters
requestA container for the necessary parameters to execute the DeleteTrafficMirrorFilterRule service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified Traffic Mirror session.
See
AWSEC2DeleteTrafficMirrorSessionRequest
See
AWSEC2DeleteTrafficMirrorSessionResult
Declaration
Objective-C
- (id)deleteTrafficMirrorSession: (nonnull AWSEC2DeleteTrafficMirrorSessionRequest *)request;Swift
func deleteTrafficMirrorSession(_ request: AWSEC2DeleteTrafficMirrorSessionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTrafficMirrorSession service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTrafficMirrorSessionResult. -
Deletes the specified Traffic Mirror session.
See
AWSEC2DeleteTrafficMirrorSessionRequest
See
AWSEC2DeleteTrafficMirrorSessionResult
Declaration
Objective-C
- (void)deleteTrafficMirrorSession: (nonnull AWSEC2DeleteTrafficMirrorSessionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTrafficMirrorSessionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTrafficMirrorSession(_ request: AWSEC2DeleteTrafficMirrorSessionRequest) async throws -> AWSEC2DeleteTrafficMirrorSessionResultParameters
requestA container for the necessary parameters to execute the DeleteTrafficMirrorSession service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified Traffic Mirror target.
You cannot delete a Traffic Mirror target that is in use by a Traffic Mirror session.
See
AWSEC2DeleteTrafficMirrorTargetRequest
See
AWSEC2DeleteTrafficMirrorTargetResult
Declaration
Objective-C
- (id)deleteTrafficMirrorTarget: (nonnull AWSEC2DeleteTrafficMirrorTargetRequest *)request;Swift
func deleteTrafficMirrorTarget(_ request: AWSEC2DeleteTrafficMirrorTargetRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTrafficMirrorTarget service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTrafficMirrorTargetResult. -
Deletes the specified Traffic Mirror target.
You cannot delete a Traffic Mirror target that is in use by a Traffic Mirror session.
See
AWSEC2DeleteTrafficMirrorTargetRequest
See
AWSEC2DeleteTrafficMirrorTargetResult
Declaration
Objective-C
- (void)deleteTrafficMirrorTarget: (nonnull AWSEC2DeleteTrafficMirrorTargetRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTrafficMirrorTargetResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTrafficMirrorTarget(_ request: AWSEC2DeleteTrafficMirrorTargetRequest) async throws -> AWSEC2DeleteTrafficMirrorTargetResultParameters
requestA container for the necessary parameters to execute the DeleteTrafficMirrorTarget service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified transit gateway.
See
AWSEC2DeleteTransitGatewayRequest
See
AWSEC2DeleteTransitGatewayResult
Declaration
Objective-C
- (id)deleteTransitGateway:(nonnull AWSEC2DeleteTransitGatewayRequest *)request;Swift
func deleteTransitGateway(_ request: AWSEC2DeleteTransitGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTransitGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTransitGatewayResult. -
Deletes the specified transit gateway.
See
AWSEC2DeleteTransitGatewayRequest
See
AWSEC2DeleteTransitGatewayResult
Declaration
Objective-C
- (void)deleteTransitGateway: (nonnull AWSEC2DeleteTransitGatewayRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeleteTransitGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTransitGateway(_ request: AWSEC2DeleteTransitGatewayRequest) async throws -> AWSEC2DeleteTransitGatewayResultParameters
requestA container for the necessary parameters to execute the DeleteTransitGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified Connect attachment. You must first delete any Connect peers for the attachment.
See
AWSEC2DeleteTransitGatewayConnectRequest
See
AWSEC2DeleteTransitGatewayConnectResult
Declaration
Objective-C
- (id)deleteTransitGatewayConnect: (nonnull AWSEC2DeleteTransitGatewayConnectRequest *)request;Swift
func deleteTransitGatewayConnect(_ request: AWSEC2DeleteTransitGatewayConnectRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayConnect service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTransitGatewayConnectResult. -
Deletes the specified Connect attachment. You must first delete any Connect peers for the attachment.
See
AWSEC2DeleteTransitGatewayConnectRequest
See
AWSEC2DeleteTransitGatewayConnectResult
Declaration
Objective-C
- (void)deleteTransitGatewayConnect: (nonnull AWSEC2DeleteTransitGatewayConnectRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTransitGatewayConnectResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTransitGatewayConnect(_ request: AWSEC2DeleteTransitGatewayConnectRequest) async throws -> AWSEC2DeleteTransitGatewayConnectResultParameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayConnect service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified Connect peer.
See
AWSEC2DeleteTransitGatewayConnectPeerRequest
See
AWSEC2DeleteTransitGatewayConnectPeerResult
Declaration
Objective-C
- (id)deleteTransitGatewayConnectPeer: (nonnull AWSEC2DeleteTransitGatewayConnectPeerRequest *)request;Swift
func deleteTransitGatewayConnectPeer(_ request: AWSEC2DeleteTransitGatewayConnectPeerRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayConnectPeer service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTransitGatewayConnectPeerResult. -
Deletes the specified Connect peer.
See
AWSEC2DeleteTransitGatewayConnectPeerRequest
See
AWSEC2DeleteTransitGatewayConnectPeerResult
Declaration
Objective-C
- (void)deleteTransitGatewayConnectPeer: (nonnull AWSEC2DeleteTransitGatewayConnectPeerRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTransitGatewayConnectPeerResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTransitGatewayConnectPeer(_ request: AWSEC2DeleteTransitGatewayConnectPeerRequest) async throws -> AWSEC2DeleteTransitGatewayConnectPeerResultParameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayConnectPeer service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified transit gateway multicast domain.
See
AWSEC2DeleteTransitGatewayMulticastDomainRequest
See
AWSEC2DeleteTransitGatewayMulticastDomainResult
Declaration
Objective-C
- (id)deleteTransitGatewayMulticastDomain: (nonnull AWSEC2DeleteTransitGatewayMulticastDomainRequest *)request;Swift
func deleteTransitGatewayMulticastDomain(_ request: AWSEC2DeleteTransitGatewayMulticastDomainRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayMulticastDomain service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTransitGatewayMulticastDomainResult. -
Deletes the specified transit gateway multicast domain.
See
AWSEC2DeleteTransitGatewayMulticastDomainRequest
See
AWSEC2DeleteTransitGatewayMulticastDomainResult
Declaration
Objective-C
- (void) deleteTransitGatewayMulticastDomain: (nonnull AWSEC2DeleteTransitGatewayMulticastDomainRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTransitGatewayMulticastDomainResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTransitGatewayMulticastDomain(_ request: AWSEC2DeleteTransitGatewayMulticastDomainRequest) async throws -> AWSEC2DeleteTransitGatewayMulticastDomainResultParameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayMulticastDomain service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes a transit gateway peering attachment.
See
AWSEC2DeleteTransitGatewayPeeringAttachmentRequest
See
AWSEC2DeleteTransitGatewayPeeringAttachmentResult
Declaration
Objective-C
- (id)deleteTransitGatewayPeeringAttachment: (nonnull AWSEC2DeleteTransitGatewayPeeringAttachmentRequest *)request;Swift
func deleteTransitGatewayPeeringAttachment(_ request: AWSEC2DeleteTransitGatewayPeeringAttachmentRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayPeeringAttachment service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTransitGatewayPeeringAttachmentResult. -
Deletes a transit gateway peering attachment.
See
AWSEC2DeleteTransitGatewayPeeringAttachmentRequest
See
AWSEC2DeleteTransitGatewayPeeringAttachmentResult
Declaration
Objective-C
- (void) deleteTransitGatewayPeeringAttachment: (nonnull AWSEC2DeleteTransitGatewayPeeringAttachmentRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTransitGatewayPeeringAttachmentResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTransitGatewayPeeringAttachment(_ request: AWSEC2DeleteTransitGatewayPeeringAttachmentRequest) async throws -> AWSEC2DeleteTransitGatewayPeeringAttachmentResultParameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayPeeringAttachment service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes a reference (route) to a prefix list in a specified transit gateway route table.
See
AWSEC2DeleteTransitGatewayPrefixListReferenceRequest
See
AWSEC2DeleteTransitGatewayPrefixListReferenceResult
Declaration
Objective-C
- (id)deleteTransitGatewayPrefixListReference: (nonnull AWSEC2DeleteTransitGatewayPrefixListReferenceRequest *)request;Swift
func deleteTransitGatewayPrefixListReference(_ request: AWSEC2DeleteTransitGatewayPrefixListReferenceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayPrefixListReference service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTransitGatewayPrefixListReferenceResult. -
Deletes a reference (route) to a prefix list in a specified transit gateway route table.
See
AWSEC2DeleteTransitGatewayPrefixListReferenceRequest
See
AWSEC2DeleteTransitGatewayPrefixListReferenceResult
Declaration
Objective-C
- (void) deleteTransitGatewayPrefixListReference: (nonnull AWSEC2DeleteTransitGatewayPrefixListReferenceRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTransitGatewayPrefixListReferenceResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTransitGatewayPrefixListReference(_ request: AWSEC2DeleteTransitGatewayPrefixListReferenceRequest) async throws -> AWSEC2DeleteTransitGatewayPrefixListReferenceResultParameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayPrefixListReference service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified route from the specified transit gateway route table.
See
AWSEC2DeleteTransitGatewayRouteRequest
See
AWSEC2DeleteTransitGatewayRouteResult
Declaration
Objective-C
- (id)deleteTransitGatewayRoute: (nonnull AWSEC2DeleteTransitGatewayRouteRequest *)request;Swift
func deleteTransitGatewayRoute(_ request: AWSEC2DeleteTransitGatewayRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTransitGatewayRouteResult. -
Deletes the specified route from the specified transit gateway route table.
See
AWSEC2DeleteTransitGatewayRouteRequest
See
AWSEC2DeleteTransitGatewayRouteResult
Declaration
Objective-C
- (void)deleteTransitGatewayRoute: (nonnull AWSEC2DeleteTransitGatewayRouteRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTransitGatewayRouteResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTransitGatewayRoute(_ request: AWSEC2DeleteTransitGatewayRouteRequest) async throws -> AWSEC2DeleteTransitGatewayRouteResultParameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified transit gateway route table. You must disassociate the route table from any transit gateway route tables before you can delete it.
See
AWSEC2DeleteTransitGatewayRouteTableRequest
See
AWSEC2DeleteTransitGatewayRouteTableResult
Declaration
Objective-C
- (id)deleteTransitGatewayRouteTable: (nonnull AWSEC2DeleteTransitGatewayRouteTableRequest *)request;Swift
func deleteTransitGatewayRouteTable(_ request: AWSEC2DeleteTransitGatewayRouteTableRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayRouteTable service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTransitGatewayRouteTableResult. -
Deletes the specified transit gateway route table. You must disassociate the route table from any transit gateway route tables before you can delete it.
See
AWSEC2DeleteTransitGatewayRouteTableRequest
See
AWSEC2DeleteTransitGatewayRouteTableResult
Declaration
Objective-C
- (void) deleteTransitGatewayRouteTable: (nonnull AWSEC2DeleteTransitGatewayRouteTableRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTransitGatewayRouteTableResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTransitGatewayRouteTable(_ request: AWSEC2DeleteTransitGatewayRouteTableRequest) async throws -> AWSEC2DeleteTransitGatewayRouteTableResultParameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayRouteTable service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified VPC attachment.
See
AWSEC2DeleteTransitGatewayVpcAttachmentRequest
See
AWSEC2DeleteTransitGatewayVpcAttachmentResult
Declaration
Objective-C
- (id)deleteTransitGatewayVpcAttachment: (nonnull AWSEC2DeleteTransitGatewayVpcAttachmentRequest *)request;Swift
func deleteTransitGatewayVpcAttachment(_ request: AWSEC2DeleteTransitGatewayVpcAttachmentRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayVpcAttachment service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteTransitGatewayVpcAttachmentResult. -
Deletes the specified VPC attachment.
See
AWSEC2DeleteTransitGatewayVpcAttachmentRequest
See
AWSEC2DeleteTransitGatewayVpcAttachmentResult
Declaration
Objective-C
- (void)deleteTransitGatewayVpcAttachment: (nonnull AWSEC2DeleteTransitGatewayVpcAttachmentRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteTransitGatewayVpcAttachmentResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteTransitGatewayVpcAttachment(_ request: AWSEC2DeleteTransitGatewayVpcAttachmentRequest) async throws -> AWSEC2DeleteTransitGatewayVpcAttachmentResultParameters
requestA container for the necessary parameters to execute the DeleteTransitGatewayVpcAttachment service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified EBS volume. The volume must be in the
availablestate (not attached to an instance).The volume can remain in the
deletingstate for several minutes.For more information, see Delete an Amazon EBS volume in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DeleteVolumeRequest
Declaration
Objective-C
- (id)deleteVolume:(nonnull AWSEC2DeleteVolumeRequest *)request;Swift
func deleteVolume(_ request: AWSEC2DeleteVolumeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteVolume service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified EBS volume. The volume must be in the
availablestate (not attached to an instance).The volume can remain in the
deletingstate for several minutes.For more information, see Delete an Amazon EBS volume in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DeleteVolumeRequest
Declaration
Objective-C
- (void)deleteVolume:(nonnull AWSEC2DeleteVolumeRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteVolume(_ request: AWSEC2DeleteVolumeRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteVolume service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.
See
AWSEC2DeleteVpcRequest
Declaration
Objective-C
- (id)deleteVpc:(nonnull AWSEC2DeleteVpcRequest *)request;Swift
func deleteVpc(_ request: AWSEC2DeleteVpcRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteVpc service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified VPC. You must detach or delete all gateways and resources that are associated with the VPC before you can delete it. For example, you must terminate all instances running in the VPC, delete all security groups associated with the VPC (except the default one), delete all route tables associated with the VPC (except the default one), and so on.
See
AWSEC2DeleteVpcRequest
Declaration
Objective-C
- (void)deleteVpc:(nonnull AWSEC2DeleteVpcRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteVpc(_ request: AWSEC2DeleteVpcRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteVpc service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes one or more VPC endpoint connection notifications.
See
AWSEC2DeleteVpcEndpointConnectionNotificationsRequest
See
AWSEC2DeleteVpcEndpointConnectionNotificationsResult
Declaration
Objective-C
- (id)deleteVpcEndpointConnectionNotifications: (nonnull AWSEC2DeleteVpcEndpointConnectionNotificationsRequest *)request;Swift
func deleteVpcEndpointConnectionNotifications(_ request: AWSEC2DeleteVpcEndpointConnectionNotificationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteVpcEndpointConnectionNotifications service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteVpcEndpointConnectionNotificationsResult. -
Deletes one or more VPC endpoint connection notifications.
See
AWSEC2DeleteVpcEndpointConnectionNotificationsRequest
See
AWSEC2DeleteVpcEndpointConnectionNotificationsResult
Declaration
Objective-C
- (void) deleteVpcEndpointConnectionNotifications: (nonnull AWSEC2DeleteVpcEndpointConnectionNotificationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteVpcEndpointConnectionNotificationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteVpcEndpointConnectionNotifications(_ request: AWSEC2DeleteVpcEndpointConnectionNotificationsRequest) async throws -> AWSEC2DeleteVpcEndpointConnectionNotificationsResultParameters
requestA container for the necessary parameters to execute the DeleteVpcEndpointConnectionNotifications service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes one or more VPC endpoint service configurations in your account. Before you delete the endpoint service configuration, you must reject any
AvailableorPendingAcceptanceinterface endpoint connections that are attached to the service.See
AWSEC2DeleteVpcEndpointServiceConfigurationsRequest
See
AWSEC2DeleteVpcEndpointServiceConfigurationsResult
Declaration
Objective-C
- (id)deleteVpcEndpointServiceConfigurations: (nonnull AWSEC2DeleteVpcEndpointServiceConfigurationsRequest *)request;Swift
func deleteVpcEndpointServiceConfigurations(_ request: AWSEC2DeleteVpcEndpointServiceConfigurationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteVpcEndpointServiceConfigurations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteVpcEndpointServiceConfigurationsResult. -
Deletes one or more VPC endpoint service configurations in your account. Before you delete the endpoint service configuration, you must reject any
AvailableorPendingAcceptanceinterface endpoint connections that are attached to the service.See
AWSEC2DeleteVpcEndpointServiceConfigurationsRequest
See
AWSEC2DeleteVpcEndpointServiceConfigurationsResult
Declaration
Objective-C
- (void) deleteVpcEndpointServiceConfigurations: (nonnull AWSEC2DeleteVpcEndpointServiceConfigurationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteVpcEndpointServiceConfigurationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteVpcEndpointServiceConfigurations(_ request: AWSEC2DeleteVpcEndpointServiceConfigurationsRequest) async throws -> AWSEC2DeleteVpcEndpointServiceConfigurationsResultParameters
requestA container for the necessary parameters to execute the DeleteVpcEndpointServiceConfigurations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes one or more specified VPC endpoints. You can delete any of the following types of VPC endpoints.
Gateway endpoint,
Gateway Load Balancer endpoint,
Interface endpoint
The following rules apply when you delete a VPC endpoint:
When you delete a gateway endpoint, we delete the endpoint routes in the route tables that are associated with the endpoint.
When you delete a Gateway Load Balancer endpoint, we delete the endpoint network interfaces.
You can only delete Gateway Load Balancer endpoints when the routes that are associated with the endpoint are deleted.
When you delete an interface endpoint, we delete the endpoint network interfaces.
See
AWSEC2DeleteVpcEndpointsRequest
See
AWSEC2DeleteVpcEndpointsResult
Declaration
Objective-C
- (id)deleteVpcEndpoints:(nonnull AWSEC2DeleteVpcEndpointsRequest *)request;Swift
func deleteVpcEndpoints(_ request: AWSEC2DeleteVpcEndpointsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteVpcEndpoints service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteVpcEndpointsResult. -
Deletes one or more specified VPC endpoints. You can delete any of the following types of VPC endpoints.
Gateway endpoint,
Gateway Load Balancer endpoint,
Interface endpoint
The following rules apply when you delete a VPC endpoint:
When you delete a gateway endpoint, we delete the endpoint routes in the route tables that are associated with the endpoint.
When you delete a Gateway Load Balancer endpoint, we delete the endpoint network interfaces.
You can only delete Gateway Load Balancer endpoints when the routes that are associated with the endpoint are deleted.
When you delete an interface endpoint, we delete the endpoint network interfaces.
See
AWSEC2DeleteVpcEndpointsRequest
See
AWSEC2DeleteVpcEndpointsResult
Declaration
Objective-C
- (void)deleteVpcEndpoints:(nonnull AWSEC2DeleteVpcEndpointsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeleteVpcEndpointsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteVpcEndpoints(_ request: AWSEC2DeleteVpcEndpointsRequest) async throws -> AWSEC2DeleteVpcEndpointsResultParameters
requestA container for the necessary parameters to execute the DeleteVpcEndpoints service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it’s in the
activestate. The owner of the requester VPC can delete a VPC peering connection in thepending-acceptancestate. You cannot delete a VPC peering connection that’s in thefailedstate.See
AWSEC2DeleteVpcPeeringConnectionRequest
See
AWSEC2DeleteVpcPeeringConnectionResult
Declaration
Objective-C
- (id)deleteVpcPeeringConnection: (nonnull AWSEC2DeleteVpcPeeringConnectionRequest *)request;Swift
func deleteVpcPeeringConnection(_ request: AWSEC2DeleteVpcPeeringConnectionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteVpcPeeringConnection service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeleteVpcPeeringConnectionResult. -
Deletes a VPC peering connection. Either the owner of the requester VPC or the owner of the accepter VPC can delete the VPC peering connection if it’s in the
activestate. The owner of the requester VPC can delete a VPC peering connection in thepending-acceptancestate. You cannot delete a VPC peering connection that’s in thefailedstate.See
AWSEC2DeleteVpcPeeringConnectionRequest
See
AWSEC2DeleteVpcPeeringConnectionResult
Declaration
Objective-C
- (void)deleteVpcPeeringConnection: (nonnull AWSEC2DeleteVpcPeeringConnectionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeleteVpcPeeringConnectionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deleteVpcPeeringConnection(_ request: AWSEC2DeleteVpcPeeringConnectionRequest) async throws -> AWSEC2DeleteVpcPeeringConnectionResultParameters
requestA container for the necessary parameters to execute the DeleteVpcPeeringConnection service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified VPN connection.
If you’re deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway device using the new configuration information returned with the new VPN connection ID.
For certificate-based authentication, delete all Certificate Manager (ACM) private certificates used for the Amazon Web Services-side tunnel endpoints for the VPN connection before deleting the VPN connection.
See
AWSEC2DeleteVpnConnectionRequest
Declaration
Objective-C
- (id)deleteVpnConnection:(nonnull AWSEC2DeleteVpnConnectionRequest *)request;Swift
func deleteVpnConnection(_ request: AWSEC2DeleteVpnConnectionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteVpnConnection service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified VPN connection.
If you’re deleting the VPC and its associated components, we recommend that you detach the virtual private gateway from the VPC and delete the VPC before deleting the VPN connection. If you believe that the tunnel credentials for your VPN connection have been compromised, you can delete the VPN connection and create a new one that has new keys, without needing to delete the VPC or virtual private gateway. If you create a new VPN connection, you must reconfigure the customer gateway device using the new configuration information returned with the new VPN connection ID.
For certificate-based authentication, delete all Certificate Manager (ACM) private certificates used for the Amazon Web Services-side tunnel endpoints for the VPN connection before deleting the VPN connection.
See
AWSEC2DeleteVpnConnectionRequest
Declaration
Objective-C
- (void)deleteVpnConnection:(nonnull AWSEC2DeleteVpnConnectionRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteVpnConnection(_ request: AWSEC2DeleteVpnConnectionRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteVpnConnection service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.
See
AWSEC2DeleteVpnConnectionRouteRequest
Declaration
Objective-C
- (id)deleteVpnConnectionRoute: (nonnull AWSEC2DeleteVpnConnectionRouteRequest *)request;Swift
func deleteVpnConnectionRoute(_ request: AWSEC2DeleteVpnConnectionRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteVpnConnectionRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified static route associated with a VPN connection between an existing virtual private gateway and a VPN customer gateway. The static route allows traffic to be routed from the virtual private gateway to the VPN customer gateway.
See
AWSEC2DeleteVpnConnectionRouteRequest
Declaration
Objective-C
- (void)deleteVpnConnectionRoute: (nonnull AWSEC2DeleteVpnConnectionRouteRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteVpnConnectionRoute(_ request: AWSEC2DeleteVpnConnectionRouteRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteVpnConnectionRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deletes the specified virtual private gateway. You must first detach the virtual private gateway from the VPC. Note that you don’t need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.
See
AWSEC2DeleteVpnGatewayRequest
Declaration
Objective-C
- (id)deleteVpnGateway:(nonnull AWSEC2DeleteVpnGatewayRequest *)request;Swift
func deleteVpnGateway(_ request: AWSEC2DeleteVpnGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeleteVpnGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deletes the specified virtual private gateway. You must first detach the virtual private gateway from the VPC. Note that you don’t need to delete the virtual private gateway if you plan to delete and recreate the VPN connection between your VPC and your network.
See
AWSEC2DeleteVpnGatewayRequest
Declaration
Objective-C
- (void)deleteVpnGateway:(nonnull AWSEC2DeleteVpnGatewayRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deleteVpnGateway(_ request: AWSEC2DeleteVpnGatewayRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeleteVpnGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Releases the specified address range that you provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.
Before you can release an address range, you must stop advertising it using WithdrawByoipCidr and you must not have any IP addresses allocated from its address range.
See
AWSEC2DeprovisionByoipCidrRequest
See
AWSEC2DeprovisionByoipCidrResult
Declaration
Objective-C
- (id)deprovisionByoipCidr:(nonnull AWSEC2DeprovisionByoipCidrRequest *)request;Swift
func deprovisionByoipCidr(_ request: AWSEC2DeprovisionByoipCidrRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeprovisionByoipCidr service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeprovisionByoipCidrResult. -
Releases the specified address range that you provisioned for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and deletes the corresponding address pool.
Before you can release an address range, you must stop advertising it using WithdrawByoipCidr and you must not have any IP addresses allocated from its address range.
See
AWSEC2DeprovisionByoipCidrRequest
See
AWSEC2DeprovisionByoipCidrResult
Declaration
Objective-C
- (void)deprovisionByoipCidr: (nonnull AWSEC2DeprovisionByoipCidrRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeprovisionByoipCidrResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deprovisionByoipCidr(_ request: AWSEC2DeprovisionByoipCidrRequest) async throws -> AWSEC2DeprovisionByoipCidrResultParameters
requestA container for the necessary parameters to execute the DeprovisionByoipCidr service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deprovision a CIDR provisioned from an IPAM pool. If you deprovision a CIDR from a pool that has a source pool, the CIDR is recycled back into the source pool. For more information, see Deprovision pool CIDRs in the Amazon VPC IPAM User Guide.
See
AWSEC2DeprovisionIpamPoolCidrRequest
See
AWSEC2DeprovisionIpamPoolCidrResult
Declaration
Objective-C
- (id)deprovisionIpamPoolCidr: (nonnull AWSEC2DeprovisionIpamPoolCidrRequest *)request;Swift
func deprovisionIpamPoolCidr(_ request: AWSEC2DeprovisionIpamPoolCidrRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeprovisionIpamPoolCidr service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeprovisionIpamPoolCidrResult. -
Deprovision a CIDR provisioned from an IPAM pool. If you deprovision a CIDR from a pool that has a source pool, the CIDR is recycled back into the source pool. For more information, see Deprovision pool CIDRs in the Amazon VPC IPAM User Guide.
See
AWSEC2DeprovisionIpamPoolCidrRequest
See
AWSEC2DeprovisionIpamPoolCidrResult
Declaration
Objective-C
- (void) deprovisionIpamPoolCidr: (nonnull AWSEC2DeprovisionIpamPoolCidrRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DeprovisionIpamPoolCidrResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deprovisionIpamPoolCidr(_ request: AWSEC2DeprovisionIpamPoolCidrRequest) async throws -> AWSEC2DeprovisionIpamPoolCidrResultParameters
requestA container for the necessary parameters to execute the DeprovisionIpamPoolCidr service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deprovision a CIDR from a public IPv4 pool.
See
AWSEC2DeprovisionPublicIpv4PoolCidrRequest
See
AWSEC2DeprovisionPublicIpv4PoolCidrResult
Declaration
Objective-C
- (id)deprovisionPublicIpv4PoolCidr: (nonnull AWSEC2DeprovisionPublicIpv4PoolCidrRequest *)request;Swift
func deprovisionPublicIpv4PoolCidr(_ request: AWSEC2DeprovisionPublicIpv4PoolCidrRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeprovisionPublicIpv4PoolCidr service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeprovisionPublicIpv4PoolCidrResult. -
Deprovision a CIDR from a public IPv4 pool.
See
AWSEC2DeprovisionPublicIpv4PoolCidrRequest
See
AWSEC2DeprovisionPublicIpv4PoolCidrResult
Declaration
Objective-C
- (void) deprovisionPublicIpv4PoolCidr: (nonnull AWSEC2DeprovisionPublicIpv4PoolCidrRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DeprovisionPublicIpv4PoolCidrResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deprovisionPublicIpv4PoolCidr(_ request: AWSEC2DeprovisionPublicIpv4PoolCidrRequest) async throws -> AWSEC2DeprovisionPublicIpv4PoolCidrResultParameters
requestA container for the necessary parameters to execute the DeprovisionPublicIpv4PoolCidr service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deregisters the specified AMI. After you deregister an AMI, it can’t be used to launch new instances.
If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is retained in the Recycle Bin for the specified retention period. For more information, see Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
When you deregister an AMI, it doesn’t affect any instances that you’ve already launched from the AMI. You’ll continue to incur usage costs for those instances until you terminate them.
When you deregister an Amazon EBS-backed AMI, it doesn’t affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn’t affect the files that you uploaded to Amazon S3 when you created the AMI.
See
AWSEC2DeregisterImageRequest
Declaration
Objective-C
- (id)deregisterImage:(nonnull AWSEC2DeregisterImageRequest *)request;Swift
func deregisterImage(_ request: AWSEC2DeregisterImageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeregisterImage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Deregisters the specified AMI. After you deregister an AMI, it can’t be used to launch new instances.
If you deregister an AMI that matches a Recycle Bin retention rule, the AMI is retained in the Recycle Bin for the specified retention period. For more information, see Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
When you deregister an AMI, it doesn’t affect any instances that you’ve already launched from the AMI. You’ll continue to incur usage costs for those instances until you terminate them.
When you deregister an Amazon EBS-backed AMI, it doesn’t affect the snapshot that was created for the root volume of the instance during the AMI creation process. When you deregister an instance store-backed AMI, it doesn’t affect the files that you uploaded to Amazon S3 when you created the AMI.
See
AWSEC2DeregisterImageRequest
Declaration
Objective-C
- (void)deregisterImage:(nonnull AWSEC2DeregisterImageRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func deregisterImage(_ request: AWSEC2DeregisterImageRequest) async throwsParameters
requestA container for the necessary parameters to execute the DeregisterImage service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Deregisters tag keys to prevent tags that have the specified tag keys from being included in scheduled event notifications for resources in the Region.
See
AWSEC2DeregisterInstanceEventNotificationAttributesRequest
See
AWSEC2DeregisterInstanceEventNotificationAttributesResult
Declaration
Objective-C
- (id)deregisterInstanceEventNotificationAttributes: (nonnull AWSEC2DeregisterInstanceEventNotificationAttributesRequest *) request;Swift
func deregisterInstanceEventNotificationAttributes(_ request: AWSEC2DeregisterInstanceEventNotificationAttributesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeregisterInstanceEventNotificationAttributes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeregisterInstanceEventNotificationAttributesResult. -
Deregisters tag keys to prevent tags that have the specified tag keys from being included in scheduled event notifications for resources in the Region.
See
AWSEC2DeregisterInstanceEventNotificationAttributesRequest
See
AWSEC2DeregisterInstanceEventNotificationAttributesResult
Declaration
Objective-C
- (void) deregisterInstanceEventNotificationAttributes: (nonnull AWSEC2DeregisterInstanceEventNotificationAttributesRequest *) request completionHandler: (void (^_Nullable)( AWSEC2DeregisterInstanceEventNotificationAttributesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deregisterInstanceEventNotificationAttributes(_ request: AWSEC2DeregisterInstanceEventNotificationAttributesRequest) async throws -> AWSEC2DeregisterInstanceEventNotificationAttributesResultParameters
requestA container for the necessary parameters to execute the DeregisterInstanceEventNotificationAttributes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deregisters the specified members (network interfaces) from the transit gateway multicast group.
See
AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest
See
AWSEC2DeregisterTransitGatewayMulticastGroupMembersResult
Declaration
Objective-C
- (id)deregisterTransitGatewayMulticastGroupMembers: (nonnull AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest *) request;Swift
func deregisterTransitGatewayMulticastGroupMembers(_ request: AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeregisterTransitGatewayMulticastGroupMembers service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeregisterTransitGatewayMulticastGroupMembersResult. -
Deregisters the specified members (network interfaces) from the transit gateway multicast group.
See
AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest
See
AWSEC2DeregisterTransitGatewayMulticastGroupMembersResult
Declaration
Objective-C
- (void) deregisterTransitGatewayMulticastGroupMembers: (nonnull AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest *) request completionHandler: (void (^_Nullable)( AWSEC2DeregisterTransitGatewayMulticastGroupMembersResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deregisterTransitGatewayMulticastGroupMembers(_ request: AWSEC2DeregisterTransitGatewayMulticastGroupMembersRequest) async throws -> AWSEC2DeregisterTransitGatewayMulticastGroupMembersResultParameters
requestA container for the necessary parameters to execute the DeregisterTransitGatewayMulticastGroupMembers service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Deregisters the specified sources (network interfaces) from the transit gateway multicast group.
See
AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest
See
AWSEC2DeregisterTransitGatewayMulticastGroupSourcesResult
Declaration
Objective-C
- (id)deregisterTransitGatewayMulticastGroupSources: (nonnull AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest *) request;Swift
func deregisterTransitGatewayMulticastGroupSources(_ request: AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DeregisterTransitGatewayMulticastGroupSources service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DeregisterTransitGatewayMulticastGroupSourcesResult. -
Deregisters the specified sources (network interfaces) from the transit gateway multicast group.
See
AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest
See
AWSEC2DeregisterTransitGatewayMulticastGroupSourcesResult
Declaration
Objective-C
- (void) deregisterTransitGatewayMulticastGroupSources: (nonnull AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest *) request completionHandler: (void (^_Nullable)( AWSEC2DeregisterTransitGatewayMulticastGroupSourcesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func deregisterTransitGatewayMulticastGroupSources(_ request: AWSEC2DeregisterTransitGatewayMulticastGroupSourcesRequest) async throws -> AWSEC2DeregisterTransitGatewayMulticastGroupSourcesResultParameters
requestA container for the necessary parameters to execute the DeregisterTransitGatewayMulticastGroupSources service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes attributes of your Amazon Web Services account. The following are the supported account attributes:
supported-platforms: Indicates whether your account can launch instances into EC2-Classic and EC2-VPC, or only into EC2-VPC.default-vpc: The ID of the default VPC for your account, ornone.max-instances: This attribute is no longer supported. The returned value does not reflect your actual vCPU limit for running On-Demand Instances. For more information, see On-Demand Instance Limits in the Amazon Elastic Compute Cloud User Guide.vpc-max-security-groups-per-interface: The maximum number of security groups that you can assign to a network interface.max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate for use with EC2-Classic.vpc-max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate for use with EC2-VPC.
See
AWSEC2DescribeAccountAttributesRequest
See
AWSEC2DescribeAccountAttributesResult
Declaration
Objective-C
- (id)describeAccountAttributes: (nonnull AWSEC2DescribeAccountAttributesRequest *)request;Swift
func describeAccountAttributes(_ request: AWSEC2DescribeAccountAttributesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeAccountAttributes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeAccountAttributesResult. -
Describes attributes of your Amazon Web Services account. The following are the supported account attributes:
supported-platforms: Indicates whether your account can launch instances into EC2-Classic and EC2-VPC, or only into EC2-VPC.default-vpc: The ID of the default VPC for your account, ornone.max-instances: This attribute is no longer supported. The returned value does not reflect your actual vCPU limit for running On-Demand Instances. For more information, see On-Demand Instance Limits in the Amazon Elastic Compute Cloud User Guide.vpc-max-security-groups-per-interface: The maximum number of security groups that you can assign to a network interface.max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate for use with EC2-Classic.vpc-max-elastic-ips: The maximum number of Elastic IP addresses that you can allocate for use with EC2-VPC.
See
AWSEC2DescribeAccountAttributesRequest
See
AWSEC2DescribeAccountAttributesResult
Declaration
Objective-C
- (void)describeAccountAttributes: (nonnull AWSEC2DescribeAccountAttributesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeAccountAttributesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeAccountAttributes(_ request: AWSEC2DescribeAccountAttributesRequest) async throws -> AWSEC2DescribeAccountAttributesResultParameters
requestA container for the necessary parameters to execute the DescribeAccountAttributes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified Elastic IP addresses or all of your Elastic IP addresses.
An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeAddressesRequest
See
AWSEC2DescribeAddressesResult
Declaration
Objective-C
- (id)describeAddresses:(nonnull AWSEC2DescribeAddressesRequest *)request;Swift
func describeAddresses(_ request: AWSEC2DescribeAddressesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeAddresses service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeAddressesResult. -
Describes the specified Elastic IP addresses or all of your Elastic IP addresses.
An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeAddressesRequest
See
AWSEC2DescribeAddressesResult
Declaration
Objective-C
- (void)describeAddresses:(nonnull AWSEC2DescribeAddressesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeAddressesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeAddresses(_ request: AWSEC2DescribeAddressesRequest) async throws -> AWSEC2DescribeAddressesResultParameters
requestA container for the necessary parameters to execute the DescribeAddresses service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the attributes of the specified Elastic IP addresses. For requirements, see Using reverse DNS for email applications.
See
AWSEC2DescribeAddressesAttributeRequest
See
AWSEC2DescribeAddressesAttributeResult
Declaration
Objective-C
- (id)describeAddressesAttribute: (nonnull AWSEC2DescribeAddressesAttributeRequest *)request;Swift
func describeAddressesAttribute(_ request: AWSEC2DescribeAddressesAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeAddressesAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeAddressesAttributeResult. -
Describes the attributes of the specified Elastic IP addresses. For requirements, see Using reverse DNS for email applications.
See
AWSEC2DescribeAddressesAttributeRequest
See
AWSEC2DescribeAddressesAttributeResult
Declaration
Objective-C
- (void)describeAddressesAttribute: (nonnull AWSEC2DescribeAddressesAttributeRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeAddressesAttributeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeAddressesAttribute(_ request: AWSEC2DescribeAddressesAttributeRequest) async throws -> AWSEC2DescribeAddressesAttributeResultParameters
requestA container for the necessary parameters to execute the DescribeAddressesAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the longer ID format settings for all resource types in a specific Region. This request is useful for performing a quick audit to determine whether a specific Region is fully opted in for longer IDs (17-character IDs).
This request only returns information about resource types that support longer IDs.
The following resource types support longer IDs:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|instance|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|reservation|route-table|route-table-association|security-group|snapshot|subnet|subnet-cidr-block-association|volume|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.See
AWSEC2DescribeAggregateIdFormatRequest
See
AWSEC2DescribeAggregateIdFormatResult
Declaration
Objective-C
- (id)describeAggregateIdFormat: (nonnull AWSEC2DescribeAggregateIdFormatRequest *)request;Swift
func describeAggregateIdFormat(_ request: AWSEC2DescribeAggregateIdFormatRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeAggregateIdFormat service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeAggregateIdFormatResult. -
Describes the longer ID format settings for all resource types in a specific Region. This request is useful for performing a quick audit to determine whether a specific Region is fully opted in for longer IDs (17-character IDs).
This request only returns information about resource types that support longer IDs.
The following resource types support longer IDs:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|instance|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|reservation|route-table|route-table-association|security-group|snapshot|subnet|subnet-cidr-block-association|volume|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.See
AWSEC2DescribeAggregateIdFormatRequest
See
AWSEC2DescribeAggregateIdFormatResult
Declaration
Objective-C
- (void)describeAggregateIdFormat: (nonnull AWSEC2DescribeAggregateIdFormatRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeAggregateIdFormatResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeAggregateIdFormat(_ request: AWSEC2DescribeAggregateIdFormatRequest) async throws -> AWSEC2DescribeAggregateIdFormatResultParameters
requestA container for the necessary parameters to execute the DescribeAggregateIdFormat service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to you. If there is an event impacting a zone, you can use this request to view the state and any provided messages for that zone.
For more information about Availability Zones, Local Zones, and Wavelength Zones, see Regions and zones in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeAvailabilityZonesRequest
See
AWSEC2DescribeAvailabilityZonesResult
Declaration
Objective-C
- (id)describeAvailabilityZones: (nonnull AWSEC2DescribeAvailabilityZonesRequest *)request;Swift
func describeAvailabilityZones(_ request: AWSEC2DescribeAvailabilityZonesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeAvailabilityZones service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeAvailabilityZonesResult. -
Describes the Availability Zones, Local Zones, and Wavelength Zones that are available to you. If there is an event impacting a zone, you can use this request to view the state and any provided messages for that zone.
For more information about Availability Zones, Local Zones, and Wavelength Zones, see Regions and zones in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeAvailabilityZonesRequest
See
AWSEC2DescribeAvailabilityZonesResult
Declaration
Objective-C
- (void)describeAvailabilityZones: (nonnull AWSEC2DescribeAvailabilityZonesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeAvailabilityZonesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeAvailabilityZones(_ request: AWSEC2DescribeAvailabilityZonesRequest) async throws -> AWSEC2DescribeAvailabilityZonesResultParameters
requestA container for the necessary parameters to execute the DescribeAvailabilityZones service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified bundle tasks or all of your bundle tasks.
Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use
RegisterImagewith the Amazon S3 bucket name and image manifest name you provided to the bundle task.See
AWSEC2DescribeBundleTasksRequest
See
AWSEC2DescribeBundleTasksResult
Declaration
Objective-C
- (id)describeBundleTasks:(nonnull AWSEC2DescribeBundleTasksRequest *)request;Swift
func describeBundleTasks(_ request: AWSEC2DescribeBundleTasksRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeBundleTasks service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeBundleTasksResult. -
Describes the specified bundle tasks or all of your bundle tasks.
Completed bundle tasks are listed for only a limited time. If your bundle task is no longer in the list, you can still register an AMI from it. Just use
RegisterImagewith the Amazon S3 bucket name and image manifest name you provided to the bundle task.See
AWSEC2DescribeBundleTasksRequest
See
AWSEC2DescribeBundleTasksResult
Declaration
Objective-C
- (void)describeBundleTasks:(nonnull AWSEC2DescribeBundleTasksRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeBundleTasksResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeBundleTasks(_ request: AWSEC2DescribeBundleTasksRequest) async throws -> AWSEC2DescribeBundleTasksResultParameters
requestA container for the necessary parameters to execute the DescribeBundleTasks service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.
To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools or DescribeIpv6Pools.
See
AWSEC2DescribeByoipCidrsRequest
See
AWSEC2DescribeByoipCidrsResult
Declaration
Objective-C
- (id)describeByoipCidrs:(nonnull AWSEC2DescribeByoipCidrsRequest *)request;Swift
func describeByoipCidrs(_ request: AWSEC2DescribeByoipCidrsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeByoipCidrs service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeByoipCidrsResult. -
Describes the IP address ranges that were specified in calls to ProvisionByoipCidr.
To describe the address pools that were created when you provisioned the address ranges, use DescribePublicIpv4Pools or DescribeIpv6Pools.
See
AWSEC2DescribeByoipCidrsRequest
See
AWSEC2DescribeByoipCidrsResult
Declaration
Objective-C
- (void)describeByoipCidrs:(nonnull AWSEC2DescribeByoipCidrsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeByoipCidrsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeByoipCidrs(_ request: AWSEC2DescribeByoipCidrsRequest) async throws -> AWSEC2DescribeByoipCidrsResultParameters
requestA container for the necessary parameters to execute the DescribeByoipCidrs service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more Capacity Reservation Fleets.
See
AWSEC2DescribeCapacityReservationFleetsRequest
See
AWSEC2DescribeCapacityReservationFleetsResult
Declaration
Objective-C
- (id)describeCapacityReservationFleets: (nonnull AWSEC2DescribeCapacityReservationFleetsRequest *)request;Swift
func describeCapacityReservationFleets(_ request: AWSEC2DescribeCapacityReservationFleetsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeCapacityReservationFleets service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeCapacityReservationFleetsResult. -
Describes one or more Capacity Reservation Fleets.
See
AWSEC2DescribeCapacityReservationFleetsRequest
See
AWSEC2DescribeCapacityReservationFleetsResult
Declaration
Objective-C
- (void)describeCapacityReservationFleets: (nonnull AWSEC2DescribeCapacityReservationFleetsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeCapacityReservationFleetsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeCapacityReservationFleets(_ request: AWSEC2DescribeCapacityReservationFleetsRequest) async throws -> AWSEC2DescribeCapacityReservationFleetsResultParameters
requestA container for the necessary parameters to execute the DescribeCapacityReservationFleets service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the Amazon Web Services Region that you’re currently using.
See
AWSEC2DescribeCapacityReservationsRequest
See
AWSEC2DescribeCapacityReservationsResult
Declaration
Objective-C
- (id)describeCapacityReservations: (nonnull AWSEC2DescribeCapacityReservationsRequest *)request;Swift
func describeCapacityReservations(_ request: AWSEC2DescribeCapacityReservationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeCapacityReservations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeCapacityReservationsResult. -
Describes one or more of your Capacity Reservations. The results describe only the Capacity Reservations in the Amazon Web Services Region that you’re currently using.
See
AWSEC2DescribeCapacityReservationsRequest
See
AWSEC2DescribeCapacityReservationsResult
Declaration
Objective-C
- (void)describeCapacityReservations: (nonnull AWSEC2DescribeCapacityReservationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeCapacityReservationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeCapacityReservations(_ request: AWSEC2DescribeCapacityReservationsRequest) async throws -> AWSEC2DescribeCapacityReservationsResultParameters
requestA container for the necessary parameters to execute the DescribeCapacityReservations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your carrier gateways.
See
AWSEC2DescribeCarrierGatewaysRequest
See
AWSEC2DescribeCarrierGatewaysResult
Declaration
Objective-C
- (id)describeCarrierGateways: (nonnull AWSEC2DescribeCarrierGatewaysRequest *)request;Swift
func describeCarrierGateways(_ request: AWSEC2DescribeCarrierGatewaysRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeCarrierGateways service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeCarrierGatewaysResult. -
Describes one or more of your carrier gateways.
See
AWSEC2DescribeCarrierGatewaysRequest
See
AWSEC2DescribeCarrierGatewaysResult
Declaration
Objective-C
- (void) describeCarrierGateways: (nonnull AWSEC2DescribeCarrierGatewaysRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeCarrierGatewaysResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeCarrierGateways(_ request: AWSEC2DescribeCarrierGatewaysRequest) async throws -> AWSEC2DescribeCarrierGatewaysResultParameters
requestA container for the necessary parameters to execute the DescribeCarrierGateways service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances.
See
AWSEC2DescribeClassicLinkInstancesRequest
See
AWSEC2DescribeClassicLinkInstancesResult
Declaration
Objective-C
- (id)describeClassicLinkInstances: (nonnull AWSEC2DescribeClassicLinkInstancesRequest *)request;Swift
func describeClassicLinkInstances(_ request: AWSEC2DescribeClassicLinkInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeClassicLinkInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeClassicLinkInstancesResult. -
Describes one or more of your linked EC2-Classic instances. This request only returns information about EC2-Classic instances linked to a VPC through ClassicLink. You cannot use this request to return information about other instances.
See
AWSEC2DescribeClassicLinkInstancesRequest
See
AWSEC2DescribeClassicLinkInstancesResult
Declaration
Objective-C
- (void)describeClassicLinkInstances: (nonnull AWSEC2DescribeClassicLinkInstancesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeClassicLinkInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeClassicLinkInstances(_ request: AWSEC2DescribeClassicLinkInstancesRequest) async throws -> AWSEC2DescribeClassicLinkInstancesResultParameters
requestA container for the necessary parameters to execute the DescribeClassicLinkInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the authorization rules for a specified Client VPN endpoint.
See
AWSEC2DescribeClientVpnAuthorizationRulesRequest
See
AWSEC2DescribeClientVpnAuthorizationRulesResult
Declaration
Objective-C
- (id)describeClientVpnAuthorizationRules: (nonnull AWSEC2DescribeClientVpnAuthorizationRulesRequest *)request;Swift
func describeClientVpnAuthorizationRules(_ request: AWSEC2DescribeClientVpnAuthorizationRulesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeClientVpnAuthorizationRules service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeClientVpnAuthorizationRulesResult. -
Describes the authorization rules for a specified Client VPN endpoint.
See
AWSEC2DescribeClientVpnAuthorizationRulesRequest
See
AWSEC2DescribeClientVpnAuthorizationRulesResult
Declaration
Objective-C
- (void) describeClientVpnAuthorizationRules: (nonnull AWSEC2DescribeClientVpnAuthorizationRulesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeClientVpnAuthorizationRulesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeClientVpnAuthorizationRules(_ request: AWSEC2DescribeClientVpnAuthorizationRulesRequest) async throws -> AWSEC2DescribeClientVpnAuthorizationRulesResultParameters
requestA container for the necessary parameters to execute the DescribeClientVpnAuthorizationRules service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint.
See
AWSEC2DescribeClientVpnConnectionsRequest
See
AWSEC2DescribeClientVpnConnectionsResult
Declaration
Objective-C
- (id)describeClientVpnConnections: (nonnull AWSEC2DescribeClientVpnConnectionsRequest *)request;Swift
func describeClientVpnConnections(_ request: AWSEC2DescribeClientVpnConnectionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeClientVpnConnections service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeClientVpnConnectionsResult. -
Describes active client connections and connections that have been terminated within the last 60 minutes for the specified Client VPN endpoint.
See
AWSEC2DescribeClientVpnConnectionsRequest
See
AWSEC2DescribeClientVpnConnectionsResult
Declaration
Objective-C
- (void)describeClientVpnConnections: (nonnull AWSEC2DescribeClientVpnConnectionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeClientVpnConnectionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeClientVpnConnections(_ request: AWSEC2DescribeClientVpnConnectionsRequest) async throws -> AWSEC2DescribeClientVpnConnectionsResultParameters
requestA container for the necessary parameters to execute the DescribeClientVpnConnections service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more Client VPN endpoints in the account.
See
AWSEC2DescribeClientVpnEndpointsRequest
See
AWSEC2DescribeClientVpnEndpointsResult
Declaration
Objective-C
- (id)describeClientVpnEndpoints: (nonnull AWSEC2DescribeClientVpnEndpointsRequest *)request;Swift
func describeClientVpnEndpoints(_ request: AWSEC2DescribeClientVpnEndpointsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeClientVpnEndpoints service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeClientVpnEndpointsResult. -
Describes one or more Client VPN endpoints in the account.
See
AWSEC2DescribeClientVpnEndpointsRequest
See
AWSEC2DescribeClientVpnEndpointsResult
Declaration
Objective-C
- (void)describeClientVpnEndpoints: (nonnull AWSEC2DescribeClientVpnEndpointsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeClientVpnEndpointsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeClientVpnEndpoints(_ request: AWSEC2DescribeClientVpnEndpointsRequest) async throws -> AWSEC2DescribeClientVpnEndpointsResultParameters
requestA container for the necessary parameters to execute the DescribeClientVpnEndpoints service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the routes for the specified Client VPN endpoint.
See
AWSEC2DescribeClientVpnRoutesRequest
See
AWSEC2DescribeClientVpnRoutesResult
Declaration
Objective-C
- (id)describeClientVpnRoutes: (nonnull AWSEC2DescribeClientVpnRoutesRequest *)request;Swift
func describeClientVpnRoutes(_ request: AWSEC2DescribeClientVpnRoutesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeClientVpnRoutes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeClientVpnRoutesResult. -
Describes the routes for the specified Client VPN endpoint.
See
AWSEC2DescribeClientVpnRoutesRequest
See
AWSEC2DescribeClientVpnRoutesResult
Declaration
Objective-C
- (void) describeClientVpnRoutes: (nonnull AWSEC2DescribeClientVpnRoutesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeClientVpnRoutesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeClientVpnRoutes(_ request: AWSEC2DescribeClientVpnRoutesRequest) async throws -> AWSEC2DescribeClientVpnRoutesResultParameters
requestA container for the necessary parameters to execute the DescribeClientVpnRoutes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the target networks associated with the specified Client VPN endpoint.
See
AWSEC2DescribeClientVpnTargetNetworksRequest
See
AWSEC2DescribeClientVpnTargetNetworksResult
Declaration
Objective-C
- (id)describeClientVpnTargetNetworks: (nonnull AWSEC2DescribeClientVpnTargetNetworksRequest *)request;Swift
func describeClientVpnTargetNetworks(_ request: AWSEC2DescribeClientVpnTargetNetworksRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeClientVpnTargetNetworks service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeClientVpnTargetNetworksResult. -
Describes the target networks associated with the specified Client VPN endpoint.
See
AWSEC2DescribeClientVpnTargetNetworksRequest
See
AWSEC2DescribeClientVpnTargetNetworksResult
Declaration
Objective-C
- (void)describeClientVpnTargetNetworks: (nonnull AWSEC2DescribeClientVpnTargetNetworksRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeClientVpnTargetNetworksResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeClientVpnTargetNetworks(_ request: AWSEC2DescribeClientVpnTargetNetworksRequest) async throws -> AWSEC2DescribeClientVpnTargetNetworksResultParameters
requestA container for the necessary parameters to execute the DescribeClientVpnTargetNetworks service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified customer-owned address pools or all of your customer-owned address pools.
See
AWSEC2DescribeCoipPoolsRequest
See
AWSEC2DescribeCoipPoolsResult
Declaration
Objective-C
- (id)describeCoipPools:(nonnull AWSEC2DescribeCoipPoolsRequest *)request;Swift
func describeCoipPools(_ request: AWSEC2DescribeCoipPoolsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeCoipPools service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeCoipPoolsResult. -
Describes the specified customer-owned address pools or all of your customer-owned address pools.
See
AWSEC2DescribeCoipPoolsRequest
See
AWSEC2DescribeCoipPoolsResult
Declaration
Objective-C
- (void)describeCoipPools:(nonnull AWSEC2DescribeCoipPoolsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeCoipPoolsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeCoipPools(_ request: AWSEC2DescribeCoipPoolsRequest) async throws -> AWSEC2DescribeCoipPoolsResultParameters
requestA container for the necessary parameters to execute the DescribeCoipPools service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified conversion tasks or all your conversion tasks. For more information, see the VM Import/Export User Guide.
For information about the import manifest referenced by this API action, see VM Import Manifest.
See
AWSEC2DescribeConversionTasksRequest
See
AWSEC2DescribeConversionTasksResult
Declaration
Objective-C
- (id)describeConversionTasks: (nonnull AWSEC2DescribeConversionTasksRequest *)request;Swift
func describeConversionTasks(_ request: AWSEC2DescribeConversionTasksRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeConversionTasks service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeConversionTasksResult. -
Describes the specified conversion tasks or all your conversion tasks. For more information, see the VM Import/Export User Guide.
For information about the import manifest referenced by this API action, see VM Import Manifest.
See
AWSEC2DescribeConversionTasksRequest
See
AWSEC2DescribeConversionTasksResult
Declaration
Objective-C
- (void) describeConversionTasks: (nonnull AWSEC2DescribeConversionTasksRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeConversionTasksResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeConversionTasks(_ request: AWSEC2DescribeConversionTasksRequest) async throws -> AWSEC2DescribeConversionTasksResultParameters
requestA container for the necessary parameters to execute the DescribeConversionTasks service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your VPN customer gateways.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2DescribeCustomerGatewaysRequest
See
AWSEC2DescribeCustomerGatewaysResult
Declaration
Objective-C
- (id)describeCustomerGateways: (nonnull AWSEC2DescribeCustomerGatewaysRequest *)request;Swift
func describeCustomerGateways(_ request: AWSEC2DescribeCustomerGatewaysRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeCustomerGateways service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeCustomerGatewaysResult. -
Describes one or more of your VPN customer gateways.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2DescribeCustomerGatewaysRequest
See
AWSEC2DescribeCustomerGatewaysResult
Declaration
Objective-C
- (void)describeCustomerGateways: (nonnull AWSEC2DescribeCustomerGatewaysRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeCustomerGatewaysResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeCustomerGateways(_ request: AWSEC2DescribeCustomerGatewaysRequest) async throws -> AWSEC2DescribeCustomerGatewaysResultParameters
requestA container for the necessary parameters to execute the DescribeCustomerGateways service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your DHCP options sets.
For more information, see DHCP options sets in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DescribeDhcpOptionsRequest
See
AWSEC2DescribeDhcpOptionsResult
Declaration
Objective-C
- (id)describeDhcpOptions:(nonnull AWSEC2DescribeDhcpOptionsRequest *)request;Swift
func describeDhcpOptions(_ request: AWSEC2DescribeDhcpOptionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeDhcpOptions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeDhcpOptionsResult. -
Describes one or more of your DHCP options sets.
For more information, see DHCP options sets in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DescribeDhcpOptionsRequest
See
AWSEC2DescribeDhcpOptionsResult
Declaration
Objective-C
- (void)describeDhcpOptions:(nonnull AWSEC2DescribeDhcpOptionsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeDhcpOptionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeDhcpOptions(_ request: AWSEC2DescribeDhcpOptionsRequest) async throws -> AWSEC2DescribeDhcpOptionsResultParameters
requestA container for the necessary parameters to execute the DescribeDhcpOptions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your egress-only internet gateways.
See
AWSEC2DescribeEgressOnlyInternetGatewaysRequest
See
AWSEC2DescribeEgressOnlyInternetGatewaysResult
Declaration
Objective-C
- (id)describeEgressOnlyInternetGateways: (nonnull AWSEC2DescribeEgressOnlyInternetGatewaysRequest *)request;Swift
func describeEgressOnlyInternetGateways(_ request: AWSEC2DescribeEgressOnlyInternetGatewaysRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeEgressOnlyInternetGateways service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeEgressOnlyInternetGatewaysResult. -
Describes one or more of your egress-only internet gateways.
See
AWSEC2DescribeEgressOnlyInternetGatewaysRequest
See
AWSEC2DescribeEgressOnlyInternetGatewaysResult
Declaration
Objective-C
- (void)describeEgressOnlyInternetGateways: (nonnull AWSEC2DescribeEgressOnlyInternetGatewaysRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeEgressOnlyInternetGatewaysResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeEgressOnlyInternetGateways(_ request: AWSEC2DescribeEgressOnlyInternetGatewaysRequest) async throws -> AWSEC2DescribeEgressOnlyInternetGatewaysResultParameters
requestA container for the necessary parameters to execute the DescribeEgressOnlyInternetGateways service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the Elastic Graphics accelerator associated with your instances. For more information about Elastic Graphics, see Amazon Elastic Graphics.
See
AWSEC2DescribeElasticGpusRequest
See
AWSEC2DescribeElasticGpusResult
Declaration
Objective-C
- (id)describeElasticGpus:(nonnull AWSEC2DescribeElasticGpusRequest *)request;Swift
func describeElasticGpus(_ request: AWSEC2DescribeElasticGpusRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeElasticGpus service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeElasticGpusResult. -
Describes the Elastic Graphics accelerator associated with your instances. For more information about Elastic Graphics, see Amazon Elastic Graphics.
See
AWSEC2DescribeElasticGpusRequest
See
AWSEC2DescribeElasticGpusResult
Declaration
Objective-C
- (void)describeElasticGpus:(nonnull AWSEC2DescribeElasticGpusRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeElasticGpusResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeElasticGpus(_ request: AWSEC2DescribeElasticGpusRequest) async throws -> AWSEC2DescribeElasticGpusResultParameters
requestA container for the necessary parameters to execute the DescribeElasticGpus service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified export image tasks or all of your export image tasks.
See
AWSEC2DescribeExportImageTasksRequest
See
AWSEC2DescribeExportImageTasksResult
Declaration
Objective-C
- (id)describeExportImageTasks: (nonnull AWSEC2DescribeExportImageTasksRequest *)request;Swift
func describeExportImageTasks(_ request: AWSEC2DescribeExportImageTasksRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeExportImageTasks service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeExportImageTasksResult. -
Describes the specified export image tasks or all of your export image tasks.
See
AWSEC2DescribeExportImageTasksRequest
See
AWSEC2DescribeExportImageTasksResult
Declaration
Objective-C
- (void)describeExportImageTasks: (nonnull AWSEC2DescribeExportImageTasksRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeExportImageTasksResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeExportImageTasks(_ request: AWSEC2DescribeExportImageTasksRequest) async throws -> AWSEC2DescribeExportImageTasksResultParameters
requestA container for the necessary parameters to execute the DescribeExportImageTasks service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified export instance tasks or all of your export instance tasks.
See
AWSEC2DescribeExportTasksRequest
See
AWSEC2DescribeExportTasksResult
Declaration
Objective-C
- (id)describeExportTasks:(nonnull AWSEC2DescribeExportTasksRequest *)request;Swift
func describeExportTasks(_ request: AWSEC2DescribeExportTasksRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeExportTasks service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeExportTasksResult. -
Describes the specified export instance tasks or all of your export instance tasks.
See
AWSEC2DescribeExportTasksRequest
See
AWSEC2DescribeExportTasksResult
Declaration
Objective-C
- (void)describeExportTasks:(nonnull AWSEC2DescribeExportTasksRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeExportTasksResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeExportTasks(_ request: AWSEC2DescribeExportTasksRequest) async throws -> AWSEC2DescribeExportTasksResultParameters
requestA container for the necessary parameters to execute the DescribeExportTasks service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describe details for Windows AMIs that are configured for faster launching.
See
AWSEC2DescribeFastLaunchImagesRequest
See
AWSEC2DescribeFastLaunchImagesResult
Declaration
Objective-C
- (id)describeFastLaunchImages: (nonnull AWSEC2DescribeFastLaunchImagesRequest *)request;Swift
func describeFastLaunchImages(_ request: AWSEC2DescribeFastLaunchImagesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeFastLaunchImages service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeFastLaunchImagesResult. -
Describe details for Windows AMIs that are configured for faster launching.
See
AWSEC2DescribeFastLaunchImagesRequest
See
AWSEC2DescribeFastLaunchImagesResult
Declaration
Objective-C
- (void)describeFastLaunchImages: (nonnull AWSEC2DescribeFastLaunchImagesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeFastLaunchImagesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeFastLaunchImages(_ request: AWSEC2DescribeFastLaunchImagesRequest) async throws -> AWSEC2DescribeFastLaunchImagesResultParameters
requestA container for the necessary parameters to execute the DescribeFastLaunchImages service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the state of fast snapshot restores for your snapshots.
See
AWSEC2DescribeFastSnapshotRestoresRequest
See
AWSEC2DescribeFastSnapshotRestoresResult
Declaration
Objective-C
- (id)describeFastSnapshotRestores: (nonnull AWSEC2DescribeFastSnapshotRestoresRequest *)request;Swift
func describeFastSnapshotRestores(_ request: AWSEC2DescribeFastSnapshotRestoresRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeFastSnapshotRestores service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeFastSnapshotRestoresResult. -
Describes the state of fast snapshot restores for your snapshots.
See
AWSEC2DescribeFastSnapshotRestoresRequest
See
AWSEC2DescribeFastSnapshotRestoresResult
Declaration
Objective-C
- (void)describeFastSnapshotRestores: (nonnull AWSEC2DescribeFastSnapshotRestoresRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeFastSnapshotRestoresResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeFastSnapshotRestores(_ request: AWSEC2DescribeFastSnapshotRestoresRequest) async throws -> AWSEC2DescribeFastSnapshotRestoresResultParameters
requestA container for the necessary parameters to execute the DescribeFastSnapshotRestores service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the events for the specified EC2 Fleet during the specified time.
EC2 Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. EC2 Fleet events are available for 48 hours.
For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide.
See
AWSEC2DescribeFleetHistoryRequest
See
AWSEC2DescribeFleetHistoryResult
Declaration
Objective-C
- (id)describeFleetHistory:(nonnull AWSEC2DescribeFleetHistoryRequest *)request;Swift
func describeFleetHistory(_ request: AWSEC2DescribeFleetHistoryRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeFleetHistory service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeFleetHistoryResult. -
Describes the events for the specified EC2 Fleet during the specified time.
EC2 Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. EC2 Fleet events are available for 48 hours.
For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide.
See
AWSEC2DescribeFleetHistoryRequest
See
AWSEC2DescribeFleetHistoryResult
Declaration
Objective-C
- (void)describeFleetHistory: (nonnull AWSEC2DescribeFleetHistoryRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeFleetHistoryResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeFleetHistory(_ request: AWSEC2DescribeFleetHistoryRequest) async throws -> AWSEC2DescribeFleetHistoryResultParameters
requestA container for the necessary parameters to execute the DescribeFleetHistory service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the running instances for the specified EC2 Fleet.
For more information, see Monitor your EC2 Fleet in the Amazon EC2 User Guide.
See
AWSEC2DescribeFleetInstancesRequest
See
AWSEC2DescribeFleetInstancesResult
Declaration
Objective-C
- (id)describeFleetInstances: (nonnull AWSEC2DescribeFleetInstancesRequest *)request;Swift
func describeFleetInstances(_ request: AWSEC2DescribeFleetInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeFleetInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeFleetInstancesResult. -
Describes the running instances for the specified EC2 Fleet.
For more information, see Monitor your EC2 Fleet in the Amazon EC2 User Guide.
See
AWSEC2DescribeFleetInstancesRequest
See
AWSEC2DescribeFleetInstancesResult
Declaration
Objective-C
- (void) describeFleetInstances: (nonnull AWSEC2DescribeFleetInstancesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeFleetInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeFleetInstances(_ request: AWSEC2DescribeFleetInstancesRequest) async throws -> AWSEC2DescribeFleetInstancesResultParameters
requestA container for the necessary parameters to execute the DescribeFleetInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified EC2 Fleets or all of your EC2 Fleets.
For more information, see Monitor your EC2 Fleet in the Amazon EC2 User Guide.
See
AWSEC2DescribeFleetsRequest
See
AWSEC2DescribeFleetsResult
Declaration
Objective-C
- (id)describeFleets:(nonnull AWSEC2DescribeFleetsRequest *)request;Swift
func describeFleets(_ request: AWSEC2DescribeFleetsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeFleets service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeFleetsResult. -
Describes the specified EC2 Fleets or all of your EC2 Fleets.
For more information, see Monitor your EC2 Fleet in the Amazon EC2 User Guide.
See
AWSEC2DescribeFleetsRequest
See
AWSEC2DescribeFleetsResult
Declaration
Objective-C
- (void)describeFleets:(nonnull AWSEC2DescribeFleetsRequest *)request completionHandler:(void (^_Nullable)(AWSEC2DescribeFleetsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeFleets(_ request: AWSEC2DescribeFleetsRequest) async throws -> AWSEC2DescribeFleetsResultParameters
requestA container for the necessary parameters to execute the DescribeFleets service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API.
See
AWSEC2DescribeFlowLogsRequest
See
AWSEC2DescribeFlowLogsResult
Declaration
Objective-C
- (id)describeFlowLogs:(nonnull AWSEC2DescribeFlowLogsRequest *)request;Swift
func describeFlowLogs(_ request: AWSEC2DescribeFlowLogsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeFlowLogs service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeFlowLogsResult. -
Describes one or more flow logs. To view the information in your flow logs (the log streams for the network interfaces), you must use the CloudWatch Logs console or the CloudWatch Logs API.
See
AWSEC2DescribeFlowLogsRequest
See
AWSEC2DescribeFlowLogsResult
Declaration
Objective-C
- (void)describeFlowLogs:(nonnull AWSEC2DescribeFlowLogsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeFlowLogsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeFlowLogs(_ request: AWSEC2DescribeFlowLogsRequest) async throws -> AWSEC2DescribeFlowLogsResultParameters
requestA container for the necessary parameters to execute the DescribeFlowLogs service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified attribute of the specified Amazon FPGA Image (AFI).
See
AWSEC2DescribeFpgaImageAttributeRequest
See
AWSEC2DescribeFpgaImageAttributeResult
Declaration
Objective-C
- (id)describeFpgaImageAttribute: (nonnull AWSEC2DescribeFpgaImageAttributeRequest *)request;Swift
func describeFpgaImageAttribute(_ request: AWSEC2DescribeFpgaImageAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeFpgaImageAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeFpgaImageAttributeResult. -
Describes the specified attribute of the specified Amazon FPGA Image (AFI).
See
AWSEC2DescribeFpgaImageAttributeRequest
See
AWSEC2DescribeFpgaImageAttributeResult
Declaration
Objective-C
- (void)describeFpgaImageAttribute: (nonnull AWSEC2DescribeFpgaImageAttributeRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeFpgaImageAttributeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeFpgaImageAttribute(_ request: AWSEC2DescribeFpgaImageAttributeRequest) async throws -> AWSEC2DescribeFpgaImageAttributeResultParameters
requestA container for the necessary parameters to execute the DescribeFpgaImageAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other Amazon Web Services accounts for which you have load permissions.
See
AWSEC2DescribeFpgaImagesRequest
See
AWSEC2DescribeFpgaImagesResult
Declaration
Objective-C
- (id)describeFpgaImages:(nonnull AWSEC2DescribeFpgaImagesRequest *)request;Swift
func describeFpgaImages(_ request: AWSEC2DescribeFpgaImagesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeFpgaImages service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeFpgaImagesResult. -
Describes the Amazon FPGA Images (AFIs) available to you. These include public AFIs, private AFIs that you own, and AFIs owned by other Amazon Web Services accounts for which you have load permissions.
See
AWSEC2DescribeFpgaImagesRequest
See
AWSEC2DescribeFpgaImagesResult
Declaration
Objective-C
- (void)describeFpgaImages:(nonnull AWSEC2DescribeFpgaImagesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeFpgaImagesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeFpgaImages(_ request: AWSEC2DescribeFpgaImagesRequest) async throws -> AWSEC2DescribeFpgaImagesResultParameters
requestA container for the necessary parameters to execute the DescribeFpgaImages service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the Dedicated Host reservations that are available to purchase.
The results describe all of the Dedicated Host reservation offerings, including offerings that might not match the instance family and Region of your Dedicated Hosts. When purchasing an offering, ensure that the instance family and Region of the offering matches that of the Dedicated Hosts with which it is to be associated. For more information about supported instance types, see Dedicated Hosts in the Amazon EC2 User Guide.
See
AWSEC2DescribeHostReservationOfferingsRequest
See
AWSEC2DescribeHostReservationOfferingsResult
Declaration
Objective-C
- (id)describeHostReservationOfferings: (nonnull AWSEC2DescribeHostReservationOfferingsRequest *)request;Swift
func describeHostReservationOfferings(_ request: AWSEC2DescribeHostReservationOfferingsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeHostReservationOfferings service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeHostReservationOfferingsResult. -
Describes the Dedicated Host reservations that are available to purchase.
The results describe all of the Dedicated Host reservation offerings, including offerings that might not match the instance family and Region of your Dedicated Hosts. When purchasing an offering, ensure that the instance family and Region of the offering matches that of the Dedicated Hosts with which it is to be associated. For more information about supported instance types, see Dedicated Hosts in the Amazon EC2 User Guide.
See
AWSEC2DescribeHostReservationOfferingsRequest
See
AWSEC2DescribeHostReservationOfferingsResult
Declaration
Objective-C
- (void)describeHostReservationOfferings: (nonnull AWSEC2DescribeHostReservationOfferingsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeHostReservationOfferingsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeHostReservationOfferings(_ request: AWSEC2DescribeHostReservationOfferingsRequest) async throws -> AWSEC2DescribeHostReservationOfferingsResultParameters
requestA container for the necessary parameters to execute the DescribeHostReservationOfferings service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes reservations that are associated with Dedicated Hosts in your account.
See
AWSEC2DescribeHostReservationsRequest
See
AWSEC2DescribeHostReservationsResult
Declaration
Objective-C
- (id)describeHostReservations: (nonnull AWSEC2DescribeHostReservationsRequest *)request;Swift
func describeHostReservations(_ request: AWSEC2DescribeHostReservationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeHostReservations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeHostReservationsResult. -
Describes reservations that are associated with Dedicated Hosts in your account.
See
AWSEC2DescribeHostReservationsRequest
See
AWSEC2DescribeHostReservationsResult
Declaration
Objective-C
- (void)describeHostReservations: (nonnull AWSEC2DescribeHostReservationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeHostReservationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeHostReservations(_ request: AWSEC2DescribeHostReservationsRequest) async throws -> AWSEC2DescribeHostReservationsResultParameters
requestA container for the necessary parameters to execute the DescribeHostReservations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified Dedicated Hosts or all your Dedicated Hosts.
The results describe only the Dedicated Hosts in the Region you’re currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released are listed with the state
released.See
AWSEC2DescribeHostsRequest
See
AWSEC2DescribeHostsResult
Declaration
Objective-C
- (id)describeHosts:(nonnull AWSEC2DescribeHostsRequest *)request;Swift
func describeHosts(_ request: AWSEC2DescribeHostsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeHosts service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeHostsResult. -
Describes the specified Dedicated Hosts or all your Dedicated Hosts.
The results describe only the Dedicated Hosts in the Region you’re currently using. All listed instances consume capacity on your Dedicated Host. Dedicated Hosts that have recently been released are listed with the state
released.See
AWSEC2DescribeHostsRequest
See
AWSEC2DescribeHostsResult
Declaration
Objective-C
- (void)describeHosts:(nonnull AWSEC2DescribeHostsRequest *)request completionHandler:(void (^_Nullable)(AWSEC2DescribeHostsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeHosts(_ request: AWSEC2DescribeHostsRequest) async throws -> AWSEC2DescribeHostsResultParameters
requestA container for the necessary parameters to execute the DescribeHosts service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes your IAM instance profile associations.
See
AWSEC2DescribeIamInstanceProfileAssociationsRequest
See
AWSEC2DescribeIamInstanceProfileAssociationsResult
Declaration
Objective-C
- (id)describeIamInstanceProfileAssociations: (nonnull AWSEC2DescribeIamInstanceProfileAssociationsRequest *)request;Swift
func describeIamInstanceProfileAssociations(_ request: AWSEC2DescribeIamInstanceProfileAssociationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeIamInstanceProfileAssociations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeIamInstanceProfileAssociationsResult. -
Describes your IAM instance profile associations.
See
AWSEC2DescribeIamInstanceProfileAssociationsRequest
See
AWSEC2DescribeIamInstanceProfileAssociationsResult
Declaration
Objective-C
- (void) describeIamInstanceProfileAssociations: (nonnull AWSEC2DescribeIamInstanceProfileAssociationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeIamInstanceProfileAssociationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeIamInstanceProfileAssociations(_ request: AWSEC2DescribeIamInstanceProfileAssociationsRequest) async throws -> AWSEC2DescribeIamInstanceProfileAssociationsResultParameters
requestA container for the necessary parameters to execute the DescribeIamInstanceProfileAssociations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.
The following resource types support longer IDs:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|instance|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|reservation|route-table|route-table-association|security-group|snapshot|subnet|subnet-cidr-block-association|volume|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.These settings apply to the IAM user who makes the request; they do not apply to the entire Amazon Web Services account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant
Describecommand for the resource type.See
AWSEC2DescribeIdFormatRequest
See
AWSEC2DescribeIdFormatResult
Declaration
Objective-C
- (id)describeIdFormat:(nonnull AWSEC2DescribeIdFormatRequest *)request;Swift
func describeIdFormat(_ request: AWSEC2DescribeIdFormatRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeIdFormat service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeIdFormatResult. -
Describes the ID format settings for your resources on a per-Region basis, for example, to view which resource types are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types.
The following resource types support longer IDs:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|instance|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|reservation|route-table|route-table-association|security-group|snapshot|subnet|subnet-cidr-block-association|volume|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.These settings apply to the IAM user who makes the request; they do not apply to the entire Amazon Web Services account. By default, an IAM user defaults to the same settings as the root user, unless they explicitly override the settings by running the ModifyIdFormat command. Resources created with longer IDs are visible to all IAM users, regardless of these settings and provided that they have permission to use the relevant
Describecommand for the resource type.See
AWSEC2DescribeIdFormatRequest
See
AWSEC2DescribeIdFormatResult
Declaration
Objective-C
- (void)describeIdFormat:(nonnull AWSEC2DescribeIdFormatRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeIdFormatResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeIdFormat(_ request: AWSEC2DescribeIdFormatRequest) async throws -> AWSEC2DescribeIdFormatResultParameters
requestA container for the necessary parameters to execute the DescribeIdFormat service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.
The following resource types support longer IDs:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|instance|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|reservation|route-table|route-table-association|security-group|snapshot|subnet|subnet-cidr-block-association|volume|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.
See
AWSEC2DescribeIdentityIdFormatRequest
See
AWSEC2DescribeIdentityIdFormatResult
Declaration
Objective-C
- (id)describeIdentityIdFormat: (nonnull AWSEC2DescribeIdentityIdFormatRequest *)request;Swift
func describeIdentityIdFormat(_ request: AWSEC2DescribeIdentityIdFormatRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeIdentityIdFormat service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeIdentityIdFormatResult. -
Describes the ID format settings for resources for the specified IAM user, IAM role, or root user. For example, you can view the resource types that are enabled for longer IDs. This request only returns information about resource types whose ID formats can be modified; it does not return information about other resource types. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.
The following resource types support longer IDs:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|instance|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|reservation|route-table|route-table-association|security-group|snapshot|subnet|subnet-cidr-block-association|volume|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.These settings apply to the principal specified in the request. They do not apply to the principal that makes the request.
See
AWSEC2DescribeIdentityIdFormatRequest
See
AWSEC2DescribeIdentityIdFormatResult
Declaration
Objective-C
- (void)describeIdentityIdFormat: (nonnull AWSEC2DescribeIdentityIdFormatRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeIdentityIdFormatResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeIdentityIdFormat(_ request: AWSEC2DescribeIdentityIdFormatRequest) async throws -> AWSEC2DescribeIdentityIdFormatResultParameters
requestA container for the necessary parameters to execute the DescribeIdentityIdFormat service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.
See
AWSEC2DescribeImageAttributeRequest
See
AWSEC2ImageAttribute
Declaration
Objective-C
- (id)describeImageAttribute: (nonnull AWSEC2DescribeImageAttributeRequest *)request;Swift
func describeImageAttribute(_ request: AWSEC2DescribeImageAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeImageAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ImageAttribute. -
Describes the specified attribute of the specified AMI. You can specify only one attribute at a time.
See
AWSEC2DescribeImageAttributeRequest
See
AWSEC2ImageAttribute
Declaration
Objective-C
- (void)describeImageAttribute: (nonnull AWSEC2DescribeImageAttributeRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ImageAttribute *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeImageAttribute(_ request: AWSEC2DescribeImageAttributeRequest) async throws -> AWSEC2ImageAttributeParameters
requestA container for the necessary parameters to execute the DescribeImageAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.
The images available to you include public images, private images that you own, and private images owned by other Amazon Web Services accounts for which you have explicit launch permissions.
Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image will eventually return an error indicating that the AMI ID cannot be found.
See
AWSEC2DescribeImagesRequest
See
AWSEC2DescribeImagesResult
Declaration
Objective-C
- (id)describeImages:(nonnull AWSEC2DescribeImagesRequest *)request;Swift
func describeImages(_ request: AWSEC2DescribeImagesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeImages service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeImagesResult. -
Describes the specified images (AMIs, AKIs, and ARIs) available to you or all of the images available to you.
The images available to you include public images, private images that you own, and private images owned by other Amazon Web Services accounts for which you have explicit launch permissions.
Recently deregistered images appear in the returned results for a short interval and then return empty results. After all instances that reference a deregistered AMI are terminated, specifying the ID of the image will eventually return an error indicating that the AMI ID cannot be found.
See
AWSEC2DescribeImagesRequest
See
AWSEC2DescribeImagesResult
Declaration
Objective-C
- (void)describeImages:(nonnull AWSEC2DescribeImagesRequest *)request completionHandler:(void (^_Nullable)(AWSEC2DescribeImagesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeImages(_ request: AWSEC2DescribeImagesRequest) async throws -> AWSEC2DescribeImagesResultParameters
requestA container for the necessary parameters to execute the DescribeImages service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Displays details about an import virtual machine or import snapshot tasks that are already created.
See
AWSEC2DescribeImportImageTasksRequest
See
AWSEC2DescribeImportImageTasksResult
Declaration
Objective-C
- (id)describeImportImageTasks: (nonnull AWSEC2DescribeImportImageTasksRequest *)request;Swift
func describeImportImageTasks(_ request: AWSEC2DescribeImportImageTasksRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeImportImageTasks service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeImportImageTasksResult. -
Displays details about an import virtual machine or import snapshot tasks that are already created.
See
AWSEC2DescribeImportImageTasksRequest
See
AWSEC2DescribeImportImageTasksResult
Declaration
Objective-C
- (void)describeImportImageTasks: (nonnull AWSEC2DescribeImportImageTasksRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeImportImageTasksResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeImportImageTasks(_ request: AWSEC2DescribeImportImageTasksRequest) async throws -> AWSEC2DescribeImportImageTasksResultParameters
requestA container for the necessary parameters to execute the DescribeImportImageTasks service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes your import snapshot tasks.
See
AWSEC2DescribeImportSnapshotTasksRequest
See
AWSEC2DescribeImportSnapshotTasksResult
Declaration
Objective-C
- (id)describeImportSnapshotTasks: (nonnull AWSEC2DescribeImportSnapshotTasksRequest *)request;Swift
func describeImportSnapshotTasks(_ request: AWSEC2DescribeImportSnapshotTasksRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeImportSnapshotTasks service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeImportSnapshotTasksResult. -
Describes your import snapshot tasks.
See
AWSEC2DescribeImportSnapshotTasksRequest
See
AWSEC2DescribeImportSnapshotTasksResult
Declaration
Objective-C
- (void)describeImportSnapshotTasks: (nonnull AWSEC2DescribeImportSnapshotTasksRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeImportSnapshotTasksResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeImportSnapshotTasks(_ request: AWSEC2DescribeImportSnapshotTasksRequest) async throws -> AWSEC2DescribeImportSnapshotTasksResultParameters
requestA container for the necessary parameters to execute the DescribeImportSnapshotTasks service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are:
instanceType|kernel|ramdisk|userData|disableApiTermination|instanceInitiatedShutdownBehavior|rootDeviceName|blockDeviceMapping|productCodes|sourceDestCheck|groupSet|ebsOptimized|sriovNetSupportSee
AWSEC2DescribeInstanceAttributeRequest
See
AWSEC2InstanceAttribute
Declaration
Objective-C
- (id)describeInstanceAttribute: (nonnull AWSEC2DescribeInstanceAttributeRequest *)request;Swift
func describeInstanceAttribute(_ request: AWSEC2DescribeInstanceAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeInstanceAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2InstanceAttribute. -
Describes the specified attribute of the specified instance. You can specify only one attribute at a time. Valid attribute values are:
instanceType|kernel|ramdisk|userData|disableApiTermination|instanceInitiatedShutdownBehavior|rootDeviceName|blockDeviceMapping|productCodes|sourceDestCheck|groupSet|ebsOptimized|sriovNetSupportSee
AWSEC2DescribeInstanceAttributeRequest
See
AWSEC2InstanceAttribute
Declaration
Objective-C
- (void)describeInstanceAttribute: (nonnull AWSEC2DescribeInstanceAttributeRequest *)request completionHandler: (void (^_Nullable)(AWSEC2InstanceAttribute *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeInstanceAttribute(_ request: AWSEC2DescribeInstanceAttributeRequest) async throws -> AWSEC2InstanceAttributeParameters
requestA container for the necessary parameters to execute the DescribeInstanceAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the credit option for CPU usage of the specified burstable performance instances. The credit options are
standardandunlimited.If you do not specify an instance ID, Amazon EC2 returns burstable performance instances with the
unlimitedcredit option, as well as instances that were previously configured as T2, T3, and T3a with theunlimitedcredit option. For example, if you resize a T2 instance, while it is configured asunlimited, to an M4 instance, Amazon EC2 returns the M4 instance.If you specify one or more instance IDs, Amazon EC2 returns the credit option (
standardorunlimited) of those instances. If you specify an instance ID that is not valid, such as an instance that is not a burstable performance instance, an error is returned.Recently terminated instances might appear in the returned results. This interval is usually less than one hour.
If an Availability Zone is experiencing a service disruption and you specify instance IDs in the affected zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs in an unaffected zone, the call works normally.
For more information, see Burstable performance instances in the Amazon EC2 User Guide.
See
AWSEC2DescribeInstanceCreditSpecificationsRequest
See
AWSEC2DescribeInstanceCreditSpecificationsResult
Declaration
Objective-C
- (id)describeInstanceCreditSpecifications: (nonnull AWSEC2DescribeInstanceCreditSpecificationsRequest *)request;Swift
func describeInstanceCreditSpecifications(_ request: AWSEC2DescribeInstanceCreditSpecificationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeInstanceCreditSpecifications service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeInstanceCreditSpecificationsResult. -
Describes the credit option for CPU usage of the specified burstable performance instances. The credit options are
standardandunlimited.If you do not specify an instance ID, Amazon EC2 returns burstable performance instances with the
unlimitedcredit option, as well as instances that were previously configured as T2, T3, and T3a with theunlimitedcredit option. For example, if you resize a T2 instance, while it is configured asunlimited, to an M4 instance, Amazon EC2 returns the M4 instance.If you specify one or more instance IDs, Amazon EC2 returns the credit option (
standardorunlimited) of those instances. If you specify an instance ID that is not valid, such as an instance that is not a burstable performance instance, an error is returned.Recently terminated instances might appear in the returned results. This interval is usually less than one hour.
If an Availability Zone is experiencing a service disruption and you specify instance IDs in the affected zone, or do not specify any instance IDs at all, the call fails. If you specify only instance IDs in an unaffected zone, the call works normally.
For more information, see Burstable performance instances in the Amazon EC2 User Guide.
See
AWSEC2DescribeInstanceCreditSpecificationsRequest
See
AWSEC2DescribeInstanceCreditSpecificationsResult
Declaration
Objective-C
- (void) describeInstanceCreditSpecifications: (nonnull AWSEC2DescribeInstanceCreditSpecificationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeInstanceCreditSpecificationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeInstanceCreditSpecifications(_ request: AWSEC2DescribeInstanceCreditSpecificationsRequest) async throws -> AWSEC2DescribeInstanceCreditSpecificationsResultParameters
requestA container for the necessary parameters to execute the DescribeInstanceCreditSpecifications service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region.
See
AWSEC2DescribeInstanceEventNotificationAttributesRequest
See
AWSEC2DescribeInstanceEventNotificationAttributesResult
Declaration
Objective-C
- (id)describeInstanceEventNotificationAttributes: (nonnull AWSEC2DescribeInstanceEventNotificationAttributesRequest *)request;Swift
func describeInstanceEventNotificationAttributes(_ request: AWSEC2DescribeInstanceEventNotificationAttributesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeInstanceEventNotificationAttributes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeInstanceEventNotificationAttributesResult. -
Describes the tag keys that are registered to appear in scheduled event notifications for resources in the current Region.
See
AWSEC2DescribeInstanceEventNotificationAttributesRequest
See
AWSEC2DescribeInstanceEventNotificationAttributesResult
Declaration
Objective-C
- (void) describeInstanceEventNotificationAttributes: (nonnull AWSEC2DescribeInstanceEventNotificationAttributesRequest *) request completionHandler: (void (^_Nullable)( AWSEC2DescribeInstanceEventNotificationAttributesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeInstanceEventNotificationAttributes(_ request: AWSEC2DescribeInstanceEventNotificationAttributesRequest) async throws -> AWSEC2DescribeInstanceEventNotificationAttributesResultParameters
requestA container for the necessary parameters to execute the DescribeInstanceEventNotificationAttributes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified event windows or all event windows.
If you specify event window IDs, the output includes information for only the specified event windows. If you specify filters, the output includes information for only those event windows that meet the filter criteria. If you do not specify event windows IDs or filters, the output includes information for all event windows, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2DescribeInstanceEventWindowsRequest
See
AWSEC2DescribeInstanceEventWindowsResult
Declaration
Objective-C
- (id)describeInstanceEventWindows: (nonnull AWSEC2DescribeInstanceEventWindowsRequest *)request;Swift
func describeInstanceEventWindows(_ request: AWSEC2DescribeInstanceEventWindowsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeInstanceEventWindows service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeInstanceEventWindowsResult. -
Describes the specified event windows or all event windows.
If you specify event window IDs, the output includes information for only the specified event windows. If you specify filters, the output includes information for only those event windows that meet the filter criteria. If you do not specify event windows IDs or filters, the output includes information for all event windows, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2DescribeInstanceEventWindowsRequest
See
AWSEC2DescribeInstanceEventWindowsResult
Declaration
Objective-C
- (void)describeInstanceEventWindows: (nonnull AWSEC2DescribeInstanceEventWindowsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeInstanceEventWindowsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeInstanceEventWindows(_ request: AWSEC2DescribeInstanceEventWindowsRequest) async throws -> AWSEC2DescribeInstanceEventWindowsResultParameters
requestA container for the necessary parameters to execute the DescribeInstanceEventWindows service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances.
Instance status includes the following components:
Status checks - Amazon EC2 performs status checks on running EC2 instances to identify hardware and software issues. For more information, see Status checks for your instances and Troubleshoot instances with failed status checks in the Amazon EC2 User Guide.
Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, or terminate) for your instances related to hardware issues, software updates, or system maintenance. For more information, see Scheduled events for your instances in the Amazon EC2 User Guide.
Instance state - You can manage your instances from the moment you launch them through their termination. For more information, see Instance lifecycle in the Amazon EC2 User Guide.
See
AWSEC2DescribeInstanceStatusRequest
See
AWSEC2DescribeInstanceStatusResult
Declaration
Objective-C
- (id)describeInstanceStatus: (nonnull AWSEC2DescribeInstanceStatusRequest *)request;Swift
func describeInstanceStatus(_ request: AWSEC2DescribeInstanceStatusRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeInstanceStatus service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeInstanceStatusResult. -
Describes the status of the specified instances or all of your instances. By default, only running instances are described, unless you specifically indicate to return the status of all instances.
Instance status includes the following components:
Status checks - Amazon EC2 performs status checks on running EC2 instances to identify hardware and software issues. For more information, see Status checks for your instances and Troubleshoot instances with failed status checks in the Amazon EC2 User Guide.
Scheduled events - Amazon EC2 can schedule events (such as reboot, stop, or terminate) for your instances related to hardware issues, software updates, or system maintenance. For more information, see Scheduled events for your instances in the Amazon EC2 User Guide.
Instance state - You can manage your instances from the moment you launch them through their termination. For more information, see Instance lifecycle in the Amazon EC2 User Guide.
See
AWSEC2DescribeInstanceStatusRequest
See
AWSEC2DescribeInstanceStatusResult
Declaration
Objective-C
- (void) describeInstanceStatus: (nonnull AWSEC2DescribeInstanceStatusRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeInstanceStatusResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeInstanceStatus(_ request: AWSEC2DescribeInstanceStatusRequest) async throws -> AWSEC2DescribeInstanceStatusResultParameters
requestA container for the necessary parameters to execute the DescribeInstanceStatus service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Returns a list of all instance types offered. The results can be filtered by location (Region or Availability Zone). If no location is specified, the instance types offered in the current Region are returned.
See
AWSEC2DescribeInstanceTypeOfferingsRequest
See
AWSEC2DescribeInstanceTypeOfferingsResult
Declaration
Objective-C
- (id)describeInstanceTypeOfferings: (nonnull AWSEC2DescribeInstanceTypeOfferingsRequest *)request;Swift
func describeInstanceTypeOfferings(_ request: AWSEC2DescribeInstanceTypeOfferingsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeInstanceTypeOfferings service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeInstanceTypeOfferingsResult. -
Returns a list of all instance types offered. The results can be filtered by location (Region or Availability Zone). If no location is specified, the instance types offered in the current Region are returned.
See
AWSEC2DescribeInstanceTypeOfferingsRequest
See
AWSEC2DescribeInstanceTypeOfferingsResult
Declaration
Objective-C
- (void) describeInstanceTypeOfferings: (nonnull AWSEC2DescribeInstanceTypeOfferingsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeInstanceTypeOfferingsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeInstanceTypeOfferings(_ request: AWSEC2DescribeInstanceTypeOfferingsRequest) async throws -> AWSEC2DescribeInstanceTypeOfferingsResultParameters
requestA container for the necessary parameters to execute the DescribeInstanceTypeOfferings service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the details of the instance types that are offered in a location. The results can be filtered by the attributes of the instance types.
See
AWSEC2DescribeInstanceTypesRequest
See
AWSEC2DescribeInstanceTypesResult
Declaration
Objective-C
- (id)describeInstanceTypes: (nonnull AWSEC2DescribeInstanceTypesRequest *)request;Swift
func describeInstanceTypes(_ request: AWSEC2DescribeInstanceTypesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeInstanceTypes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeInstanceTypesResult. -
Describes the details of the instance types that are offered in a location. The results can be filtered by the attributes of the instance types.
See
AWSEC2DescribeInstanceTypesRequest
See
AWSEC2DescribeInstanceTypesResult
Declaration
Objective-C
- (void)describeInstanceTypes: (nonnull AWSEC2DescribeInstanceTypesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeInstanceTypesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeInstanceTypes(_ request: AWSEC2DescribeInstanceTypesRequest) async throws -> AWSEC2DescribeInstanceTypesResultParameters
requestA container for the necessary parameters to execute the DescribeInstanceTypes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified instances or all instances.
If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.
If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the output.
Recently terminated instances might appear in the returned results. This interval is usually less than one hour.
If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.
See
AWSEC2DescribeInstancesRequest
See
AWSEC2DescribeInstancesResult
Declaration
Objective-C
- (id)describeInstances:(nonnull AWSEC2DescribeInstancesRequest *)request;Swift
func describeInstances(_ request: AWSEC2DescribeInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeInstancesResult. -
Describes the specified instances or all instances.
If you specify instance IDs, the output includes information for only the specified instances. If you specify filters, the output includes information for only those instances that meet the filter criteria. If you do not specify instance IDs or filters, the output includes information for all instances, which can affect performance. We recommend that you use pagination to ensure that the operation returns quickly and successfully.
If you specify an instance ID that is not valid, an error is returned. If you specify an instance that you do not own, it is not included in the output.
Recently terminated instances might appear in the returned results. This interval is usually less than one hour.
If you describe instances in the rare case where an Availability Zone is experiencing a service disruption and you specify instance IDs that are in the affected zone, or do not specify any instance IDs at all, the call fails. If you describe instances and specify only instance IDs that are in an unaffected zone, the call works normally.
See
AWSEC2DescribeInstancesRequest
See
AWSEC2DescribeInstancesResult
Declaration
Objective-C
- (void)describeInstances:(nonnull AWSEC2DescribeInstancesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeInstances(_ request: AWSEC2DescribeInstancesRequest) async throws -> AWSEC2DescribeInstancesResultParameters
requestA container for the necessary parameters to execute the DescribeInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your internet gateways.
See
AWSEC2DescribeInternetGatewaysRequest
See
AWSEC2DescribeInternetGatewaysResult
Declaration
Objective-C
- (id)describeInternetGateways: (nonnull AWSEC2DescribeInternetGatewaysRequest *)request;Swift
func describeInternetGateways(_ request: AWSEC2DescribeInternetGatewaysRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeInternetGateways service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeInternetGatewaysResult. -
Describes one or more of your internet gateways.
See
AWSEC2DescribeInternetGatewaysRequest
See
AWSEC2DescribeInternetGatewaysResult
Declaration
Objective-C
- (void)describeInternetGateways: (nonnull AWSEC2DescribeInternetGatewaysRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeInternetGatewaysResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeInternetGateways(_ request: AWSEC2DescribeInternetGatewaysRequest) async throws -> AWSEC2DescribeInternetGatewaysResultParameters
requestA container for the necessary parameters to execute the DescribeInternetGateways service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Get information about your IPAM pools.
See
AWSEC2DescribeIpamPoolsRequest
See
AWSEC2DescribeIpamPoolsResult
Declaration
Objective-C
- (id)describeIpamPools:(nonnull AWSEC2DescribeIpamPoolsRequest *)request;Swift
func describeIpamPools(_ request: AWSEC2DescribeIpamPoolsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeIpamPools service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeIpamPoolsResult. -
Get information about your IPAM pools.
See
AWSEC2DescribeIpamPoolsRequest
See
AWSEC2DescribeIpamPoolsResult
Declaration
Objective-C
- (void)describeIpamPools:(nonnull AWSEC2DescribeIpamPoolsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeIpamPoolsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeIpamPools(_ request: AWSEC2DescribeIpamPoolsRequest) async throws -> AWSEC2DescribeIpamPoolsResultParameters
requestA container for the necessary parameters to execute the DescribeIpamPools service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Get information about your IPAM scopes.
See
AWSEC2DescribeIpamScopesRequest
See
AWSEC2DescribeIpamScopesResult
Declaration
Objective-C
- (id)describeIpamScopes:(nonnull AWSEC2DescribeIpamScopesRequest *)request;Swift
func describeIpamScopes(_ request: AWSEC2DescribeIpamScopesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeIpamScopes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeIpamScopesResult. -
Get information about your IPAM scopes.
See
AWSEC2DescribeIpamScopesRequest
See
AWSEC2DescribeIpamScopesResult
Declaration
Objective-C
- (void)describeIpamScopes:(nonnull AWSEC2DescribeIpamScopesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeIpamScopesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeIpamScopes(_ request: AWSEC2DescribeIpamScopesRequest) async throws -> AWSEC2DescribeIpamScopesResultParameters
requestA container for the necessary parameters to execute the DescribeIpamScopes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Get information about your IPAM pools.
For more information, see What is IPAM? in the Amazon VPC IPAM User Guide.
See
AWSEC2DescribeIpamsRequest
See
AWSEC2DescribeIpamsResult
Declaration
Objective-C
- (id)describeIpams:(nonnull AWSEC2DescribeIpamsRequest *)request;Swift
func describeIpams(_ request: AWSEC2DescribeIpamsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeIpams service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeIpamsResult. -
Get information about your IPAM pools.
For more information, see What is IPAM? in the Amazon VPC IPAM User Guide.
See
AWSEC2DescribeIpamsRequest
See
AWSEC2DescribeIpamsResult
Declaration
Objective-C
- (void)describeIpams:(nonnull AWSEC2DescribeIpamsRequest *)request completionHandler:(void (^_Nullable)(AWSEC2DescribeIpamsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeIpams(_ request: AWSEC2DescribeIpamsRequest) async throws -> AWSEC2DescribeIpamsResultParameters
requestA container for the necessary parameters to execute the DescribeIpams service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes your IPv6 address pools.
See
AWSEC2DescribeIpv6PoolsRequest
See
AWSEC2DescribeIpv6PoolsResult
Declaration
Objective-C
- (id)describeIpv6Pools:(nonnull AWSEC2DescribeIpv6PoolsRequest *)request;Swift
func describeIpv6Pools(_ request: AWSEC2DescribeIpv6PoolsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeIpv6Pools service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeIpv6PoolsResult. -
Describes your IPv6 address pools.
See
AWSEC2DescribeIpv6PoolsRequest
See
AWSEC2DescribeIpv6PoolsResult
Declaration
Objective-C
- (void)describeIpv6Pools:(nonnull AWSEC2DescribeIpv6PoolsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeIpv6PoolsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeIpv6Pools(_ request: AWSEC2DescribeIpv6PoolsRequest) async throws -> AWSEC2DescribeIpv6PoolsResultParameters
requestA container for the necessary parameters to execute the DescribeIpv6Pools service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified key pairs or all of your key pairs.
For more information about key pairs, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeKeyPairsRequest
See
AWSEC2DescribeKeyPairsResult
Declaration
Objective-C
- (id)describeKeyPairs:(nonnull AWSEC2DescribeKeyPairsRequest *)request;Swift
func describeKeyPairs(_ request: AWSEC2DescribeKeyPairsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeKeyPairs service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeKeyPairsResult. -
Describes the specified key pairs or all of your key pairs.
For more information about key pairs, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeKeyPairsRequest
See
AWSEC2DescribeKeyPairsResult
Declaration
Objective-C
- (void)describeKeyPairs:(nonnull AWSEC2DescribeKeyPairsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeKeyPairsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeKeyPairs(_ request: AWSEC2DescribeKeyPairsRequest) async throws -> AWSEC2DescribeKeyPairsResultParameters
requestA container for the necessary parameters to execute the DescribeKeyPairs service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more versions of a specified launch template. You can describe all versions, individual versions, or a range of versions. You can also describe all the latest versions or all the default versions of all the launch templates in your account.
See
AWSEC2DescribeLaunchTemplateVersionsRequest
See
AWSEC2DescribeLaunchTemplateVersionsResult
Declaration
Objective-C
- (id)describeLaunchTemplateVersions: (nonnull AWSEC2DescribeLaunchTemplateVersionsRequest *)request;Swift
func describeLaunchTemplateVersions(_ request: AWSEC2DescribeLaunchTemplateVersionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeLaunchTemplateVersions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeLaunchTemplateVersionsResult. -
Describes one or more versions of a specified launch template. You can describe all versions, individual versions, or a range of versions. You can also describe all the latest versions or all the default versions of all the launch templates in your account.
See
AWSEC2DescribeLaunchTemplateVersionsRequest
See
AWSEC2DescribeLaunchTemplateVersionsResult
Declaration
Objective-C
- (void) describeLaunchTemplateVersions: (nonnull AWSEC2DescribeLaunchTemplateVersionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeLaunchTemplateVersionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeLaunchTemplateVersions(_ request: AWSEC2DescribeLaunchTemplateVersionsRequest) async throws -> AWSEC2DescribeLaunchTemplateVersionsResultParameters
requestA container for the necessary parameters to execute the DescribeLaunchTemplateVersions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more launch templates.
See
AWSEC2DescribeLaunchTemplatesRequest
See
AWSEC2DescribeLaunchTemplatesResult
Declaration
Objective-C
- (id)describeLaunchTemplates: (nonnull AWSEC2DescribeLaunchTemplatesRequest *)request;Swift
func describeLaunchTemplates(_ request: AWSEC2DescribeLaunchTemplatesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeLaunchTemplates service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeLaunchTemplatesResult. -
Describes one or more launch templates.
See
AWSEC2DescribeLaunchTemplatesRequest
See
AWSEC2DescribeLaunchTemplatesResult
Declaration
Objective-C
- (void) describeLaunchTemplates: (nonnull AWSEC2DescribeLaunchTemplatesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeLaunchTemplatesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeLaunchTemplates(_ request: AWSEC2DescribeLaunchTemplatesRequest) async throws -> AWSEC2DescribeLaunchTemplatesResultParameters
requestA container for the necessary parameters to execute the DescribeLaunchTemplates service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the associations between virtual interface groups and local gateway route tables.
See
AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest
See
AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult
Declaration
Objective-C
- (id)describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations: (nonnull AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest *)request;Swift
func describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(_ request: AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult. -
Describes the associations between virtual interface groups and local gateway route tables.
See
AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest
See
AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult
Declaration
Objective-C
- (void) describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations: (nonnull AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResult *_Nullable, NSError *_Nullable)) completionHandler;Swift
func describeLocalGatewayRouteTableVirtualInterfaceGroupAssociations(_ request: AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsRequest) async throws -> AWSEC2DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociationsResultParameters
requestA container for the necessary parameters to execute the DescribeLocalGatewayRouteTableVirtualInterfaceGroupAssociations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified associations between VPCs and local gateway route tables.
See
AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest
See
AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsResult
Declaration
Objective-C
- (id)describeLocalGatewayRouteTableVpcAssociations: (nonnull AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest *) request;Swift
func describeLocalGatewayRouteTableVpcAssociations(_ request: AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeLocalGatewayRouteTableVpcAssociations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeLocalGatewayRouteTableVpcAssociationsResult. -
Describes the specified associations between VPCs and local gateway route tables.
See
AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest
See
AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsResult
Declaration
Objective-C
- (void) describeLocalGatewayRouteTableVpcAssociations: (nonnull AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest *) request completionHandler: (void (^_Nullable)( AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeLocalGatewayRouteTableVpcAssociations(_ request: AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsRequest) async throws -> AWSEC2DescribeLocalGatewayRouteTableVpcAssociationsResultParameters
requestA container for the necessary parameters to execute the DescribeLocalGatewayRouteTableVpcAssociations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more local gateway route tables. By default, all local gateway route tables are described. Alternatively, you can filter the results.
See
AWSEC2DescribeLocalGatewayRouteTablesRequest
See
AWSEC2DescribeLocalGatewayRouteTablesResult
Declaration
Objective-C
- (id)describeLocalGatewayRouteTables: (nonnull AWSEC2DescribeLocalGatewayRouteTablesRequest *)request;Swift
func describeLocalGatewayRouteTables(_ request: AWSEC2DescribeLocalGatewayRouteTablesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeLocalGatewayRouteTables service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeLocalGatewayRouteTablesResult. -
Describes one or more local gateway route tables. By default, all local gateway route tables are described. Alternatively, you can filter the results.
See
AWSEC2DescribeLocalGatewayRouteTablesRequest
See
AWSEC2DescribeLocalGatewayRouteTablesResult
Declaration
Objective-C
- (void)describeLocalGatewayRouteTables: (nonnull AWSEC2DescribeLocalGatewayRouteTablesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeLocalGatewayRouteTablesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeLocalGatewayRouteTables(_ request: AWSEC2DescribeLocalGatewayRouteTablesRequest) async throws -> AWSEC2DescribeLocalGatewayRouteTablesResultParameters
requestA container for the necessary parameters to execute the DescribeLocalGatewayRouteTables service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified local gateway virtual interface groups.
See
AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest
See
AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsResult
Declaration
Objective-C
- (id)describeLocalGatewayVirtualInterfaceGroups: (nonnull AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest *)request;Swift
func describeLocalGatewayVirtualInterfaceGroups(_ request: AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeLocalGatewayVirtualInterfaceGroups service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeLocalGatewayVirtualInterfaceGroupsResult. -
Describes the specified local gateway virtual interface groups.
See
AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest
See
AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsResult
Declaration
Objective-C
- (void) describeLocalGatewayVirtualInterfaceGroups: (nonnull AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest *) request completionHandler: (void (^_Nullable)( AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeLocalGatewayVirtualInterfaceGroups(_ request: AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsRequest) async throws -> AWSEC2DescribeLocalGatewayVirtualInterfaceGroupsResultParameters
requestA container for the necessary parameters to execute the DescribeLocalGatewayVirtualInterfaceGroups service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified local gateway virtual interfaces.
See
AWSEC2DescribeLocalGatewayVirtualInterfacesRequest
See
AWSEC2DescribeLocalGatewayVirtualInterfacesResult
Declaration
Objective-C
- (id)describeLocalGatewayVirtualInterfaces: (nonnull AWSEC2DescribeLocalGatewayVirtualInterfacesRequest *)request;Swift
func describeLocalGatewayVirtualInterfaces(_ request: AWSEC2DescribeLocalGatewayVirtualInterfacesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeLocalGatewayVirtualInterfaces service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeLocalGatewayVirtualInterfacesResult. -
Describes the specified local gateway virtual interfaces.
See
AWSEC2DescribeLocalGatewayVirtualInterfacesRequest
See
AWSEC2DescribeLocalGatewayVirtualInterfacesResult
Declaration
Objective-C
- (void) describeLocalGatewayVirtualInterfaces: (nonnull AWSEC2DescribeLocalGatewayVirtualInterfacesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeLocalGatewayVirtualInterfacesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeLocalGatewayVirtualInterfaces(_ request: AWSEC2DescribeLocalGatewayVirtualInterfacesRequest) async throws -> AWSEC2DescribeLocalGatewayVirtualInterfacesResultParameters
requestA container for the necessary parameters to execute the DescribeLocalGatewayVirtualInterfaces service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results.
See
AWSEC2DescribeLocalGatewaysRequest
See
AWSEC2DescribeLocalGatewaysResult
Declaration
Objective-C
- (id)describeLocalGateways: (nonnull AWSEC2DescribeLocalGatewaysRequest *)request;Swift
func describeLocalGateways(_ request: AWSEC2DescribeLocalGatewaysRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeLocalGateways service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeLocalGatewaysResult. -
Describes one or more local gateways. By default, all local gateways are described. Alternatively, you can filter the results.
See
AWSEC2DescribeLocalGatewaysRequest
See
AWSEC2DescribeLocalGatewaysResult
Declaration
Objective-C
- (void)describeLocalGateways: (nonnull AWSEC2DescribeLocalGatewaysRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeLocalGatewaysResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeLocalGateways(_ request: AWSEC2DescribeLocalGatewaysRequest) async throws -> AWSEC2DescribeLocalGatewaysResultParameters
requestA container for the necessary parameters to execute the DescribeLocalGateways service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes your managed prefix lists and any Amazon Web Services-managed prefix lists.
To view the entries for your prefix list, use GetManagedPrefixListEntries.
See
AWSEC2DescribeManagedPrefixListsRequest
See
AWSEC2DescribeManagedPrefixListsResult
Declaration
Objective-C
- (id)describeManagedPrefixLists: (nonnull AWSEC2DescribeManagedPrefixListsRequest *)request;Swift
func describeManagedPrefixLists(_ request: AWSEC2DescribeManagedPrefixListsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeManagedPrefixLists service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeManagedPrefixListsResult. -
Describes your managed prefix lists and any Amazon Web Services-managed prefix lists.
To view the entries for your prefix list, use GetManagedPrefixListEntries.
See
AWSEC2DescribeManagedPrefixListsRequest
See
AWSEC2DescribeManagedPrefixListsResult
Declaration
Objective-C
- (void)describeManagedPrefixLists: (nonnull AWSEC2DescribeManagedPrefixListsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeManagedPrefixListsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeManagedPrefixLists(_ request: AWSEC2DescribeManagedPrefixListsRequest) async throws -> AWSEC2DescribeManagedPrefixListsResultParameters
requestA container for the necessary parameters to execute the DescribeManagedPrefixLists service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account.
See
AWSEC2DescribeMovingAddressesRequest
See
AWSEC2DescribeMovingAddressesResult
Declaration
Objective-C
- (id)describeMovingAddresses: (nonnull AWSEC2DescribeMovingAddressesRequest *)request;Swift
func describeMovingAddresses(_ request: AWSEC2DescribeMovingAddressesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeMovingAddresses service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeMovingAddressesResult. -
Describes your Elastic IP addresses that are being moved to the EC2-VPC platform, or that are being restored to the EC2-Classic platform. This request does not return information about any other Elastic IP addresses in your account.
See
AWSEC2DescribeMovingAddressesRequest
See
AWSEC2DescribeMovingAddressesResult
Declaration
Objective-C
- (void) describeMovingAddresses: (nonnull AWSEC2DescribeMovingAddressesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeMovingAddressesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeMovingAddresses(_ request: AWSEC2DescribeMovingAddressesRequest) async throws -> AWSEC2DescribeMovingAddressesResultParameters
requestA container for the necessary parameters to execute the DescribeMovingAddresses service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your NAT gateways.
See
AWSEC2DescribeNatGatewaysRequest
See
AWSEC2DescribeNatGatewaysResult
Declaration
Objective-C
- (id)describeNatGateways:(nonnull AWSEC2DescribeNatGatewaysRequest *)request;Swift
func describeNatGateways(_ request: AWSEC2DescribeNatGatewaysRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeNatGateways service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeNatGatewaysResult. -
Describes one or more of your NAT gateways.
See
AWSEC2DescribeNatGatewaysRequest
See
AWSEC2DescribeNatGatewaysResult
Declaration
Objective-C
- (void)describeNatGateways:(nonnull AWSEC2DescribeNatGatewaysRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeNatGatewaysResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeNatGateways(_ request: AWSEC2DescribeNatGatewaysRequest) async throws -> AWSEC2DescribeNatGatewaysResultParameters
requestA container for the necessary parameters to execute the DescribeNatGateways service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your network ACLs.
For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DescribeNetworkAclsRequest
See
AWSEC2DescribeNetworkAclsResult
Declaration
Objective-C
- (id)describeNetworkAcls:(nonnull AWSEC2DescribeNetworkAclsRequest *)request;Swift
func describeNetworkAcls(_ request: AWSEC2DescribeNetworkAclsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeNetworkAcls service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeNetworkAclsResult. -
Describes one or more of your network ACLs.
For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DescribeNetworkAclsRequest
See
AWSEC2DescribeNetworkAclsResult
Declaration
Objective-C
- (void)describeNetworkAcls:(nonnull AWSEC2DescribeNetworkAclsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeNetworkAclsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeNetworkAcls(_ request: AWSEC2DescribeNetworkAclsRequest) async throws -> AWSEC2DescribeNetworkAclsResultParameters
requestA container for the necessary parameters to execute the DescribeNetworkAcls service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified Network Access Scope analyses.
See
AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest
See
AWSEC2DescribeNetworkInsightsAccessScopeAnalysesResult
Declaration
Objective-C
- (id)describeNetworkInsightsAccessScopeAnalyses: (nonnull AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest *)request;Swift
func describeNetworkInsightsAccessScopeAnalyses(_ request: AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeNetworkInsightsAccessScopeAnalyses service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeNetworkInsightsAccessScopeAnalysesResult. -
Describes the specified Network Access Scope analyses.
See
AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest
See
AWSEC2DescribeNetworkInsightsAccessScopeAnalysesResult
Declaration
Objective-C
- (void) describeNetworkInsightsAccessScopeAnalyses: (nonnull AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest *) request completionHandler: (void (^_Nullable)( AWSEC2DescribeNetworkInsightsAccessScopeAnalysesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeNetworkInsightsAccessScopeAnalyses(_ request: AWSEC2DescribeNetworkInsightsAccessScopeAnalysesRequest) async throws -> AWSEC2DescribeNetworkInsightsAccessScopeAnalysesResultParameters
requestA container for the necessary parameters to execute the DescribeNetworkInsightsAccessScopeAnalyses service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified Network Access Scopes.
See
AWSEC2DescribeNetworkInsightsAccessScopesRequest
See
AWSEC2DescribeNetworkInsightsAccessScopesResult
Declaration
Objective-C
- (id)describeNetworkInsightsAccessScopes: (nonnull AWSEC2DescribeNetworkInsightsAccessScopesRequest *)request;Swift
func describeNetworkInsightsAccessScopes(_ request: AWSEC2DescribeNetworkInsightsAccessScopesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeNetworkInsightsAccessScopes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeNetworkInsightsAccessScopesResult. -
Describes the specified Network Access Scopes.
See
AWSEC2DescribeNetworkInsightsAccessScopesRequest
See
AWSEC2DescribeNetworkInsightsAccessScopesResult
Declaration
Objective-C
- (void) describeNetworkInsightsAccessScopes: (nonnull AWSEC2DescribeNetworkInsightsAccessScopesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeNetworkInsightsAccessScopesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeNetworkInsightsAccessScopes(_ request: AWSEC2DescribeNetworkInsightsAccessScopesRequest) async throws -> AWSEC2DescribeNetworkInsightsAccessScopesResultParameters
requestA container for the necessary parameters to execute the DescribeNetworkInsightsAccessScopes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your network insights analyses.
See
AWSEC2DescribeNetworkInsightsAnalysesRequest
See
AWSEC2DescribeNetworkInsightsAnalysesResult
Declaration
Objective-C
- (id)describeNetworkInsightsAnalyses: (nonnull AWSEC2DescribeNetworkInsightsAnalysesRequest *)request;Swift
func describeNetworkInsightsAnalyses(_ request: AWSEC2DescribeNetworkInsightsAnalysesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeNetworkInsightsAnalyses service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeNetworkInsightsAnalysesResult. -
Describes one or more of your network insights analyses.
See
AWSEC2DescribeNetworkInsightsAnalysesRequest
See
AWSEC2DescribeNetworkInsightsAnalysesResult
Declaration
Objective-C
- (void)describeNetworkInsightsAnalyses: (nonnull AWSEC2DescribeNetworkInsightsAnalysesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeNetworkInsightsAnalysesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeNetworkInsightsAnalyses(_ request: AWSEC2DescribeNetworkInsightsAnalysesRequest) async throws -> AWSEC2DescribeNetworkInsightsAnalysesResultParameters
requestA container for the necessary parameters to execute the DescribeNetworkInsightsAnalyses service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your paths.
See
AWSEC2DescribeNetworkInsightsPathsRequest
See
AWSEC2DescribeNetworkInsightsPathsResult
Declaration
Objective-C
- (id)describeNetworkInsightsPaths: (nonnull AWSEC2DescribeNetworkInsightsPathsRequest *)request;Swift
func describeNetworkInsightsPaths(_ request: AWSEC2DescribeNetworkInsightsPathsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeNetworkInsightsPaths service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeNetworkInsightsPathsResult. -
Describes one or more of your paths.
See
AWSEC2DescribeNetworkInsightsPathsRequest
See
AWSEC2DescribeNetworkInsightsPathsResult
Declaration
Objective-C
- (void)describeNetworkInsightsPaths: (nonnull AWSEC2DescribeNetworkInsightsPathsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeNetworkInsightsPathsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeNetworkInsightsPaths(_ request: AWSEC2DescribeNetworkInsightsPathsRequest) async throws -> AWSEC2DescribeNetworkInsightsPathsResultParameters
requestA container for the necessary parameters to execute the DescribeNetworkInsightsPaths service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes a network interface attribute. You can specify only one attribute at a time.
See
AWSEC2DescribeNetworkInterfaceAttributeRequest
See
AWSEC2DescribeNetworkInterfaceAttributeResult
Declaration
Objective-C
- (id)describeNetworkInterfaceAttribute: (nonnull AWSEC2DescribeNetworkInterfaceAttributeRequest *)request;Swift
func describeNetworkInterfaceAttribute(_ request: AWSEC2DescribeNetworkInterfaceAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeNetworkInterfaceAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeNetworkInterfaceAttributeResult. -
Describes a network interface attribute. You can specify only one attribute at a time.
See
AWSEC2DescribeNetworkInterfaceAttributeRequest
See
AWSEC2DescribeNetworkInterfaceAttributeResult
Declaration
Objective-C
- (void)describeNetworkInterfaceAttribute: (nonnull AWSEC2DescribeNetworkInterfaceAttributeRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeNetworkInterfaceAttributeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeNetworkInterfaceAttribute(_ request: AWSEC2DescribeNetworkInterfaceAttributeRequest) async throws -> AWSEC2DescribeNetworkInterfaceAttributeResultParameters
requestA container for the necessary parameters to execute the DescribeNetworkInterfaceAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the permissions for your network interfaces.
See
AWSEC2DescribeNetworkInterfacePermissionsRequest
See
AWSEC2DescribeNetworkInterfacePermissionsResult
Declaration
Objective-C
- (id)describeNetworkInterfacePermissions: (nonnull AWSEC2DescribeNetworkInterfacePermissionsRequest *)request;Swift
func describeNetworkInterfacePermissions(_ request: AWSEC2DescribeNetworkInterfacePermissionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeNetworkInterfacePermissions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeNetworkInterfacePermissionsResult. -
Describes the permissions for your network interfaces.
See
AWSEC2DescribeNetworkInterfacePermissionsRequest
See
AWSEC2DescribeNetworkInterfacePermissionsResult
Declaration
Objective-C
- (void) describeNetworkInterfacePermissions: (nonnull AWSEC2DescribeNetworkInterfacePermissionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeNetworkInterfacePermissionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeNetworkInterfacePermissions(_ request: AWSEC2DescribeNetworkInterfacePermissionsRequest) async throws -> AWSEC2DescribeNetworkInterfacePermissionsResultParameters
requestA container for the necessary parameters to execute the DescribeNetworkInterfacePermissions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your network interfaces.
See
AWSEC2DescribeNetworkInterfacesRequest
See
AWSEC2DescribeNetworkInterfacesResult
Declaration
Objective-C
- (id)describeNetworkInterfaces: (nonnull AWSEC2DescribeNetworkInterfacesRequest *)request;Swift
func describeNetworkInterfaces(_ request: AWSEC2DescribeNetworkInterfacesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeNetworkInterfaces service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeNetworkInterfacesResult. -
Describes one or more of your network interfaces.
See
AWSEC2DescribeNetworkInterfacesRequest
See
AWSEC2DescribeNetworkInterfacesResult
Declaration
Objective-C
- (void)describeNetworkInterfaces: (nonnull AWSEC2DescribeNetworkInterfacesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeNetworkInterfacesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeNetworkInterfaces(_ request: AWSEC2DescribeNetworkInterfacesRequest) async throws -> AWSEC2DescribeNetworkInterfacesResultParameters
requestA container for the necessary parameters to execute the DescribeNetworkInterfaces service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified placement groups or all of your placement groups. For more information, see Placement groups in the Amazon EC2 User Guide.
See
AWSEC2DescribePlacementGroupsRequest
See
AWSEC2DescribePlacementGroupsResult
Declaration
Objective-C
- (id)describePlacementGroups: (nonnull AWSEC2DescribePlacementGroupsRequest *)request;Swift
func describePlacementGroups(_ request: AWSEC2DescribePlacementGroupsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribePlacementGroups service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribePlacementGroupsResult. -
Describes the specified placement groups or all of your placement groups. For more information, see Placement groups in the Amazon EC2 User Guide.
See
AWSEC2DescribePlacementGroupsRequest
See
AWSEC2DescribePlacementGroupsResult
Declaration
Objective-C
- (void) describePlacementGroups: (nonnull AWSEC2DescribePlacementGroupsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribePlacementGroupsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describePlacementGroups(_ request: AWSEC2DescribePlacementGroupsRequest) async throws -> AWSEC2DescribePlacementGroupsResultParameters
requestA container for the necessary parameters to execute the DescribePlacementGroups service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes available Amazon Web Services services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service.
We recommend that you use DescribeManagedPrefixLists instead.
See
AWSEC2DescribePrefixListsRequest
See
AWSEC2DescribePrefixListsResult
Declaration
Objective-C
- (id)describePrefixLists:(nonnull AWSEC2DescribePrefixListsRequest *)request;Swift
func describePrefixLists(_ request: AWSEC2DescribePrefixListsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribePrefixLists service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribePrefixListsResult. -
Describes available Amazon Web Services services in a prefix list format, which includes the prefix list name and prefix list ID of the service and the IP address range for the service.
We recommend that you use DescribeManagedPrefixLists instead.
See
AWSEC2DescribePrefixListsRequest
See
AWSEC2DescribePrefixListsResult
Declaration
Objective-C
- (void)describePrefixLists:(nonnull AWSEC2DescribePrefixListsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribePrefixListsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describePrefixLists(_ request: AWSEC2DescribePrefixListsRequest) async throws -> AWSEC2DescribePrefixListsResultParameters
requestA container for the necessary parameters to execute the DescribePrefixLists service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.
By default, all IAM roles and IAM users default to the same ID settings as the root user, unless they explicitly override the settings. This request is useful for identifying those IAM users and IAM roles that have overridden the default ID settings.
The following resource types support longer IDs:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|instance|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|reservation|route-table|route-table-association|security-group|snapshot|subnet|subnet-cidr-block-association|volume|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.See
AWSEC2DescribePrincipalIdFormatRequest
See
AWSEC2DescribePrincipalIdFormatResult
Declaration
Objective-C
- (id)describePrincipalIdFormat: (nonnull AWSEC2DescribePrincipalIdFormatRequest *)request;Swift
func describePrincipalIdFormat(_ request: AWSEC2DescribePrincipalIdFormatRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribePrincipalIdFormat service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribePrincipalIdFormatResult. -
Describes the ID format settings for the root user and all IAM roles and IAM users that have explicitly specified a longer ID (17-character ID) preference.
By default, all IAM roles and IAM users default to the same ID settings as the root user, unless they explicitly override the settings. This request is useful for identifying those IAM users and IAM roles that have overridden the default ID settings.
The following resource types support longer IDs:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|instance|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|reservation|route-table|route-table-association|security-group|snapshot|subnet|subnet-cidr-block-association|volume|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.See
AWSEC2DescribePrincipalIdFormatRequest
See
AWSEC2DescribePrincipalIdFormatResult
Declaration
Objective-C
- (void)describePrincipalIdFormat: (nonnull AWSEC2DescribePrincipalIdFormatRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribePrincipalIdFormatResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describePrincipalIdFormat(_ request: AWSEC2DescribePrincipalIdFormatRequest) async throws -> AWSEC2DescribePrincipalIdFormatResultParameters
requestA container for the necessary parameters to execute the DescribePrincipalIdFormat service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified IPv4 address pools.
See
AWSEC2DescribePublicIpv4PoolsRequest
See
AWSEC2DescribePublicIpv4PoolsResult
Declaration
Objective-C
- (id)describePublicIpv4Pools: (nonnull AWSEC2DescribePublicIpv4PoolsRequest *)request;Swift
func describePublicIpv4Pools(_ request: AWSEC2DescribePublicIpv4PoolsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribePublicIpv4Pools service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribePublicIpv4PoolsResult. -
Describes the specified IPv4 address pools.
See
AWSEC2DescribePublicIpv4PoolsRequest
See
AWSEC2DescribePublicIpv4PoolsResult
Declaration
Objective-C
- (void) describePublicIpv4Pools: (nonnull AWSEC2DescribePublicIpv4PoolsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribePublicIpv4PoolsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describePublicIpv4Pools(_ request: AWSEC2DescribePublicIpv4PoolsRequest) async throws -> AWSEC2DescribePublicIpv4PoolsResultParameters
requestA container for the necessary parameters to execute the DescribePublicIpv4Pools service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the Regions that are enabled for your account, or all Regions.
For a list of the Regions supported by Amazon EC2, see Amazon Elastic Compute Cloud endpoints and quotas.
For information about enabling and disabling Regions for your account, see Managing Amazon Web Services Regions in the Amazon Web Services General Reference.
See
AWSEC2DescribeRegionsRequest
See
AWSEC2DescribeRegionsResult
Declaration
Objective-C
- (id)describeRegions:(nonnull AWSEC2DescribeRegionsRequest *)request;Swift
func describeRegions(_ request: AWSEC2DescribeRegionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeRegions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeRegionsResult. -
Describes the Regions that are enabled for your account, or all Regions.
For a list of the Regions supported by Amazon EC2, see Amazon Elastic Compute Cloud endpoints and quotas.
For information about enabling and disabling Regions for your account, see Managing Amazon Web Services Regions in the Amazon Web Services General Reference.
See
AWSEC2DescribeRegionsRequest
See
AWSEC2DescribeRegionsResult
Declaration
Objective-C
- (void)describeRegions:(nonnull AWSEC2DescribeRegionsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeRegionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeRegions(_ request: AWSEC2DescribeRegionsRequest) async throws -> AWSEC2DescribeRegionsResultParameters
requestA container for the necessary parameters to execute the DescribeRegions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes a root volume replacement task. For more information, see Replace a root volume in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeReplaceRootVolumeTasksRequest
See
AWSEC2DescribeReplaceRootVolumeTasksResult
Declaration
Objective-C
- (id)describeReplaceRootVolumeTasks: (nonnull AWSEC2DescribeReplaceRootVolumeTasksRequest *)request;Swift
func describeReplaceRootVolumeTasks(_ request: AWSEC2DescribeReplaceRootVolumeTasksRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeReplaceRootVolumeTasks service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeReplaceRootVolumeTasksResult. -
Describes a root volume replacement task. For more information, see Replace a root volume in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeReplaceRootVolumeTasksRequest
See
AWSEC2DescribeReplaceRootVolumeTasksResult
Declaration
Objective-C
- (void) describeReplaceRootVolumeTasks: (nonnull AWSEC2DescribeReplaceRootVolumeTasksRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeReplaceRootVolumeTasksResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeReplaceRootVolumeTasks(_ request: AWSEC2DescribeReplaceRootVolumeTasksRequest) async throws -> AWSEC2DescribeReplaceRootVolumeTasksResultParameters
requestA container for the necessary parameters to execute the DescribeReplaceRootVolumeTasks service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of the Reserved Instances that you purchased.
For more information about Reserved Instances, see Reserved Instances in the Amazon EC2 User Guide.
See
AWSEC2DescribeReservedInstancesRequest
See
AWSEC2DescribeReservedInstancesResult
Declaration
Objective-C
- (id)describeReservedInstances: (nonnull AWSEC2DescribeReservedInstancesRequest *)request;Swift
func describeReservedInstances(_ request: AWSEC2DescribeReservedInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeReservedInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeReservedInstancesResult. -
Describes one or more of the Reserved Instances that you purchased.
For more information about Reserved Instances, see Reserved Instances in the Amazon EC2 User Guide.
See
AWSEC2DescribeReservedInstancesRequest
See
AWSEC2DescribeReservedInstancesResult
Declaration
Objective-C
- (void)describeReservedInstances: (nonnull AWSEC2DescribeReservedInstancesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeReservedInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeReservedInstances(_ request: AWSEC2DescribeReservedInstancesRequest) async throws -> AWSEC2DescribeReservedInstancesResultParameters
requestA container for the necessary parameters to execute the DescribeReservedInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes your account’s Reserved Instance listings in the Reserved Instance Marketplace.
The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.
As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.
As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you’re searching for with what’s available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.
For more information, see Reserved Instance Marketplace in the Amazon EC2 User Guide.
See
AWSEC2DescribeReservedInstancesListingsRequest
See
AWSEC2DescribeReservedInstancesListingsResult
Declaration
Objective-C
- (id)describeReservedInstancesListings: (nonnull AWSEC2DescribeReservedInstancesListingsRequest *)request;Swift
func describeReservedInstancesListings(_ request: AWSEC2DescribeReservedInstancesListingsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeReservedInstancesListings service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeReservedInstancesListingsResult. -
Describes your account’s Reserved Instance listings in the Reserved Instance Marketplace.
The Reserved Instance Marketplace matches sellers who want to resell Reserved Instance capacity that they no longer need with buyers who want to purchase additional capacity. Reserved Instances bought and sold through the Reserved Instance Marketplace work like any other Reserved Instances.
As a seller, you choose to list some or all of your Reserved Instances, and you specify the upfront price to receive for them. Your Reserved Instances are then listed in the Reserved Instance Marketplace and are available for purchase.
As a buyer, you specify the configuration of the Reserved Instance to purchase, and the Marketplace matches what you’re searching for with what’s available. The Marketplace first sells the lowest priced Reserved Instances to you, and continues to sell available Reserved Instance listings to you until your demand is met. You are charged based on the total price of all of the listings that you purchase.
For more information, see Reserved Instance Marketplace in the Amazon EC2 User Guide.
See
AWSEC2DescribeReservedInstancesListingsRequest
See
AWSEC2DescribeReservedInstancesListingsResult
Declaration
Objective-C
- (void)describeReservedInstancesListings: (nonnull AWSEC2DescribeReservedInstancesListingsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeReservedInstancesListingsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeReservedInstancesListings(_ request: AWSEC2DescribeReservedInstancesListingsRequest) async throws -> AWSEC2DescribeReservedInstancesListingsResultParameters
requestA container for the necessary parameters to execute the DescribeReservedInstancesListings service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.
For more information, see Modifying Reserved Instances in the Amazon EC2 User Guide.
See
AWSEC2DescribeReservedInstancesModificationsRequest
See
AWSEC2DescribeReservedInstancesModificationsResult
Declaration
Objective-C
- (id)describeReservedInstancesModifications: (nonnull AWSEC2DescribeReservedInstancesModificationsRequest *)request;Swift
func describeReservedInstancesModifications(_ request: AWSEC2DescribeReservedInstancesModificationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeReservedInstancesModifications service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeReservedInstancesModificationsResult. -
Describes the modifications made to your Reserved Instances. If no parameter is specified, information about all your Reserved Instances modification requests is returned. If a modification ID is specified, only information about the specific modification is returned.
For more information, see Modifying Reserved Instances in the Amazon EC2 User Guide.
See
AWSEC2DescribeReservedInstancesModificationsRequest
See
AWSEC2DescribeReservedInstancesModificationsResult
Declaration
Objective-C
- (void) describeReservedInstancesModifications: (nonnull AWSEC2DescribeReservedInstancesModificationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeReservedInstancesModificationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeReservedInstancesModifications(_ request: AWSEC2DescribeReservedInstancesModificationsRequest) async throws -> AWSEC2DescribeReservedInstancesModificationsResultParameters
requestA container for the necessary parameters to execute the DescribeReservedInstancesModifications service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.
If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.
For more information, see Reserved Instance Marketplace in the Amazon EC2 User Guide.
See
AWSEC2DescribeReservedInstancesOfferingsRequest
See
AWSEC2DescribeReservedInstancesOfferingsResult
Declaration
Objective-C
- (id)describeReservedInstancesOfferings: (nonnull AWSEC2DescribeReservedInstancesOfferingsRequest *)request;Swift
func describeReservedInstancesOfferings(_ request: AWSEC2DescribeReservedInstancesOfferingsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeReservedInstancesOfferings service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeReservedInstancesOfferingsResult. -
Describes Reserved Instance offerings that are available for purchase. With Reserved Instances, you purchase the right to launch instances for a period of time. During that time period, you do not receive insufficient capacity errors, and you pay a lower usage rate than the rate charged for On-Demand instances for the actual time used.
If you have listed your own Reserved Instances for sale in the Reserved Instance Marketplace, they will be excluded from these results. This is to ensure that you do not purchase your own Reserved Instances.
For more information, see Reserved Instance Marketplace in the Amazon EC2 User Guide.
See
AWSEC2DescribeReservedInstancesOfferingsRequest
See
AWSEC2DescribeReservedInstancesOfferingsResult
Declaration
Objective-C
- (void)describeReservedInstancesOfferings: (nonnull AWSEC2DescribeReservedInstancesOfferingsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeReservedInstancesOfferingsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeReservedInstancesOfferings(_ request: AWSEC2DescribeReservedInstancesOfferingsRequest) async throws -> AWSEC2DescribeReservedInstancesOfferingsResultParameters
requestA container for the necessary parameters to execute the DescribeReservedInstancesOfferings service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your route tables.
Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.
For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DescribeRouteTablesRequest
See
AWSEC2DescribeRouteTablesResult
Declaration
Objective-C
- (id)describeRouteTables:(nonnull AWSEC2DescribeRouteTablesRequest *)request;Swift
func describeRouteTables(_ request: AWSEC2DescribeRouteTablesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeRouteTables service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeRouteTablesResult. -
Describes one or more of your route tables.
Each subnet in your VPC must be associated with a route table. If a subnet is not explicitly associated with any route table, it is implicitly associated with the main route table. This command does not return the subnet ID for implicit associations.
For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DescribeRouteTablesRequest
See
AWSEC2DescribeRouteTablesResult
Declaration
Objective-C
- (void)describeRouteTables:(nonnull AWSEC2DescribeRouteTablesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeRouteTablesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeRouteTables(_ request: AWSEC2DescribeRouteTablesRequest) async throws -> AWSEC2DescribeRouteTablesResultParameters
requestA container for the necessary parameters to execute the DescribeRouteTables service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Finds available schedules that meet the specified criteria.
You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.
After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.
See
AWSEC2DescribeScheduledInstanceAvailabilityRequest
See
AWSEC2DescribeScheduledInstanceAvailabilityResult
Declaration
Objective-C
- (id)describeScheduledInstanceAvailability: (nonnull AWSEC2DescribeScheduledInstanceAvailabilityRequest *)request;Swift
func describeScheduledInstanceAvailability(_ request: AWSEC2DescribeScheduledInstanceAvailabilityRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeScheduledInstanceAvailability service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeScheduledInstanceAvailabilityResult. -
Finds available schedules that meet the specified criteria.
You can search for an available schedule no more than 3 months in advance. You must meet the minimum required duration of 1,200 hours per year. For example, the minimum daily schedule is 4 hours, the minimum weekly schedule is 24 hours, and the minimum monthly schedule is 100 hours.
After you find a schedule that meets your needs, call PurchaseScheduledInstances to purchase Scheduled Instances with that schedule.
See
AWSEC2DescribeScheduledInstanceAvailabilityRequest
See
AWSEC2DescribeScheduledInstanceAvailabilityResult
Declaration
Objective-C
- (void) describeScheduledInstanceAvailability: (nonnull AWSEC2DescribeScheduledInstanceAvailabilityRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeScheduledInstanceAvailabilityResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeScheduledInstanceAvailability(_ request: AWSEC2DescribeScheduledInstanceAvailabilityRequest) async throws -> AWSEC2DescribeScheduledInstanceAvailabilityResultParameters
requestA container for the necessary parameters to execute the DescribeScheduledInstanceAvailability service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified Scheduled Instances or all your Scheduled Instances.
See
AWSEC2DescribeScheduledInstancesRequest
See
AWSEC2DescribeScheduledInstancesResult
Declaration
Objective-C
- (id)describeScheduledInstances: (nonnull AWSEC2DescribeScheduledInstancesRequest *)request;Swift
func describeScheduledInstances(_ request: AWSEC2DescribeScheduledInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeScheduledInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeScheduledInstancesResult. -
Describes the specified Scheduled Instances or all your Scheduled Instances.
See
AWSEC2DescribeScheduledInstancesRequest
See
AWSEC2DescribeScheduledInstancesResult
Declaration
Objective-C
- (void)describeScheduledInstances: (nonnull AWSEC2DescribeScheduledInstancesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeScheduledInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeScheduledInstances(_ request: AWSEC2DescribeScheduledInstancesRequest) async throws -> AWSEC2DescribeScheduledInstancesResultParameters
requestA container for the necessary parameters to execute the DescribeScheduledInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
[VPC only] Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you’ve specified in this request.
See
AWSEC2DescribeSecurityGroupReferencesRequest
See
AWSEC2DescribeSecurityGroupReferencesResult
Declaration
Objective-C
- (id)describeSecurityGroupReferences: (nonnull AWSEC2DescribeSecurityGroupReferencesRequest *)request;Swift
func describeSecurityGroupReferences(_ request: AWSEC2DescribeSecurityGroupReferencesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSecurityGroupReferences service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSecurityGroupReferencesResult. -
[VPC only] Describes the VPCs on the other side of a VPC peering connection that are referencing the security groups you’ve specified in this request.
See
AWSEC2DescribeSecurityGroupReferencesRequest
See
AWSEC2DescribeSecurityGroupReferencesResult
Declaration
Objective-C
- (void)describeSecurityGroupReferences: (nonnull AWSEC2DescribeSecurityGroupReferencesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeSecurityGroupReferencesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSecurityGroupReferences(_ request: AWSEC2DescribeSecurityGroupReferencesRequest) async throws -> AWSEC2DescribeSecurityGroupReferencesResultParameters
requestA container for the necessary parameters to execute the DescribeSecurityGroupReferences service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your security group rules.
See
AWSEC2DescribeSecurityGroupRulesRequest
See
AWSEC2DescribeSecurityGroupRulesResult
Declaration
Objective-C
- (id)describeSecurityGroupRules: (nonnull AWSEC2DescribeSecurityGroupRulesRequest *)request;Swift
func describeSecurityGroupRules(_ request: AWSEC2DescribeSecurityGroupRulesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSecurityGroupRules service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSecurityGroupRulesResult. -
Describes one or more of your security group rules.
See
AWSEC2DescribeSecurityGroupRulesRequest
See
AWSEC2DescribeSecurityGroupRulesResult
Declaration
Objective-C
- (void)describeSecurityGroupRules: (nonnull AWSEC2DescribeSecurityGroupRulesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeSecurityGroupRulesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSecurityGroupRules(_ request: AWSEC2DescribeSecurityGroupRulesRequest) async throws -> AWSEC2DescribeSecurityGroupRulesResultParameters
requestA container for the necessary parameters to execute the DescribeSecurityGroupRules service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified security groups or all of your security groups.
A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 security groups in the Amazon Elastic Compute Cloud User Guide and Security groups for your VPC in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DescribeSecurityGroupsRequest
See
AWSEC2DescribeSecurityGroupsResult
Declaration
Objective-C
- (id)describeSecurityGroups: (nonnull AWSEC2DescribeSecurityGroupsRequest *)request;Swift
func describeSecurityGroups(_ request: AWSEC2DescribeSecurityGroupsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSecurityGroups service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSecurityGroupsResult. -
Describes the specified security groups or all of your security groups.
A security group is for use with instances either in the EC2-Classic platform or in a specific VPC. For more information, see Amazon EC2 security groups in the Amazon Elastic Compute Cloud User Guide and Security groups for your VPC in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DescribeSecurityGroupsRequest
See
AWSEC2DescribeSecurityGroupsResult
Declaration
Objective-C
- (void) describeSecurityGroups: (nonnull AWSEC2DescribeSecurityGroupsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeSecurityGroupsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSecurityGroups(_ request: AWSEC2DescribeSecurityGroupsRequest) async throws -> AWSEC2DescribeSecurityGroupsResultParameters
requestA container for the necessary parameters to execute the DescribeSecurityGroups service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.
For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeSnapshotAttributeRequest
See
AWSEC2DescribeSnapshotAttributeResult
Declaration
Objective-C
- (id)describeSnapshotAttribute: (nonnull AWSEC2DescribeSnapshotAttributeRequest *)request;Swift
func describeSnapshotAttribute(_ request: AWSEC2DescribeSnapshotAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSnapshotAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSnapshotAttributeResult. -
Describes the specified attribute of the specified snapshot. You can specify only one attribute at a time.
For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeSnapshotAttributeRequest
See
AWSEC2DescribeSnapshotAttributeResult
Declaration
Objective-C
- (void)describeSnapshotAttribute: (nonnull AWSEC2DescribeSnapshotAttributeRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeSnapshotAttributeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSnapshotAttribute(_ request: AWSEC2DescribeSnapshotAttributeRequest) async throws -> AWSEC2DescribeSnapshotAttributeResultParameters
requestA container for the necessary parameters to execute the DescribeSnapshotAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the storage tier status of one or more Amazon EBS snapshots.
See
AWSEC2DescribeSnapshotTierStatusRequest
See
AWSEC2DescribeSnapshotTierStatusResult
Declaration
Objective-C
- (id)describeSnapshotTierStatus: (nonnull AWSEC2DescribeSnapshotTierStatusRequest *)request;Swift
func describeSnapshotTierStatus(_ request: AWSEC2DescribeSnapshotTierStatusRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSnapshotTierStatus service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSnapshotTierStatusResult. -
Describes the storage tier status of one or more Amazon EBS snapshots.
See
AWSEC2DescribeSnapshotTierStatusRequest
See
AWSEC2DescribeSnapshotTierStatusResult
Declaration
Objective-C
- (void)describeSnapshotTierStatus: (nonnull AWSEC2DescribeSnapshotTierStatusRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeSnapshotTierStatusResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSnapshotTierStatus(_ request: AWSEC2DescribeSnapshotTierStatusRequest) async throws -> AWSEC2DescribeSnapshotTierStatusResultParameters
requestA container for the necessary parameters to execute the DescribeSnapshotTierStatus service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.
The snapshots available to you include public snapshots, private snapshots that you own, and private snapshots owned by other Amazon Web Services accounts for which you have explicit create volume permissions.
The create volume permissions fall into the following categories:
public: The owner of the snapshot granted create volume permissions for the snapshot to the
allgroup. All Amazon Web Services accounts have create volume permissions for these snapshots.explicit: The owner of the snapshot granted create volume permissions to a specific Amazon Web Services account.
implicit: An Amazon Web Services account has implicit create volume permissions for all snapshots it owns.
The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot owners, or Amazon Web Services accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.
If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.
If you specify one or more snapshot owners using the
OwnerIdsoption, only snapshots from the specified owners and for which you have access are returned. The results can include the Amazon Web Services account IDs of the specified owners,amazonfor snapshots owned by Amazon, orselffor snapshots that you own.If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify Amazon Web Services account IDs (if you own the snapshots),
selffor snapshots for which you own or have explicit permissions, orallfor public snapshots.If you are describing a long list of snapshots, we recommend that you paginate the output to make the list more manageable. The
MaxResultsparameter sets the maximum number of results returned in a single page. If the list of results exceeds yourMaxResultsvalue, then that number of results is returned along with aNextTokenvalue that can be passed to a subsequentDescribeSnapshotsrequest to retrieve the remaining results.To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.
For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeSnapshotsRequest
See
AWSEC2DescribeSnapshotsResult
Declaration
Objective-C
- (id)describeSnapshots:(nonnull AWSEC2DescribeSnapshotsRequest *)request;Swift
func describeSnapshots(_ request: AWSEC2DescribeSnapshotsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSnapshots service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSnapshotsResult. -
Describes the specified EBS snapshots available to you or all of the EBS snapshots available to you.
The snapshots available to you include public snapshots, private snapshots that you own, and private snapshots owned by other Amazon Web Services accounts for which you have explicit create volume permissions.
The create volume permissions fall into the following categories:
public: The owner of the snapshot granted create volume permissions for the snapshot to the
allgroup. All Amazon Web Services accounts have create volume permissions for these snapshots.explicit: The owner of the snapshot granted create volume permissions to a specific Amazon Web Services account.
implicit: An Amazon Web Services account has implicit create volume permissions for all snapshots it owns.
The list of snapshots returned can be filtered by specifying snapshot IDs, snapshot owners, or Amazon Web Services accounts with create volume permissions. If no options are specified, Amazon EC2 returns all snapshots for which you have create volume permissions.
If you specify one or more snapshot IDs, only snapshots that have the specified IDs are returned. If you specify an invalid snapshot ID, an error is returned. If you specify a snapshot ID for which you do not have access, it is not included in the returned results.
If you specify one or more snapshot owners using the
OwnerIdsoption, only snapshots from the specified owners and for which you have access are returned. The results can include the Amazon Web Services account IDs of the specified owners,amazonfor snapshots owned by Amazon, orselffor snapshots that you own.If you specify a list of restorable users, only snapshots with create snapshot permissions for those users are returned. You can specify Amazon Web Services account IDs (if you own the snapshots),
selffor snapshots for which you own or have explicit permissions, orallfor public snapshots.If you are describing a long list of snapshots, we recommend that you paginate the output to make the list more manageable. The
MaxResultsparameter sets the maximum number of results returned in a single page. If the list of results exceeds yourMaxResultsvalue, then that number of results is returned along with aNextTokenvalue that can be passed to a subsequentDescribeSnapshotsrequest to retrieve the remaining results.To get the state of fast snapshot restores for a snapshot, use DescribeFastSnapshotRestores.
For more information about EBS snapshots, see Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeSnapshotsRequest
See
AWSEC2DescribeSnapshotsResult
Declaration
Objective-C
- (void)describeSnapshots:(nonnull AWSEC2DescribeSnapshotsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeSnapshotsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSnapshots(_ request: AWSEC2DescribeSnapshotsRequest) async throws -> AWSEC2DescribeSnapshotsResultParameters
requestA container for the necessary parameters to execute the DescribeSnapshots service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the data feed for Spot Instances. For more information, see Spot Instance data feed in the Amazon EC2 User Guide for Linux Instances.
See
AWSEC2DescribeSpotDatafeedSubscriptionRequest
See
AWSEC2DescribeSpotDatafeedSubscriptionResult
Declaration
Objective-C
- (id)describeSpotDatafeedSubscription: (nonnull AWSEC2DescribeSpotDatafeedSubscriptionRequest *)request;Swift
func describeSpotDatafeedSubscription(_ request: AWSEC2DescribeSpotDatafeedSubscriptionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSpotDatafeedSubscription service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSpotDatafeedSubscriptionResult. -
Describes the data feed for Spot Instances. For more information, see Spot Instance data feed in the Amazon EC2 User Guide for Linux Instances.
See
AWSEC2DescribeSpotDatafeedSubscriptionRequest
See
AWSEC2DescribeSpotDatafeedSubscriptionResult
Declaration
Objective-C
- (void)describeSpotDatafeedSubscription: (nonnull AWSEC2DescribeSpotDatafeedSubscriptionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeSpotDatafeedSubscriptionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSpotDatafeedSubscription(_ request: AWSEC2DescribeSpotDatafeedSubscriptionRequest) async throws -> AWSEC2DescribeSpotDatafeedSubscriptionResultParameters
requestA container for the necessary parameters to execute the DescribeSpotDatafeedSubscription service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the running instances for the specified Spot Fleet.
See
AWSEC2DescribeSpotFleetInstancesRequest
See
AWSEC2DescribeSpotFleetInstancesResponse
Declaration
Objective-C
- (id)describeSpotFleetInstances: (nonnull AWSEC2DescribeSpotFleetInstancesRequest *)request;Swift
func describeSpotFleetInstances(_ request: AWSEC2DescribeSpotFleetInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSpotFleetInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSpotFleetInstancesResponse. -
Describes the running instances for the specified Spot Fleet.
See
AWSEC2DescribeSpotFleetInstancesRequest
See
AWSEC2DescribeSpotFleetInstancesResponse
Declaration
Objective-C
- (void)describeSpotFleetInstances: (nonnull AWSEC2DescribeSpotFleetInstancesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeSpotFleetInstancesResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSpotFleetInstances(_ request: AWSEC2DescribeSpotFleetInstancesRequest) async throws -> AWSEC2DescribeSpotFleetInstancesResponseParameters
requestA container for the necessary parameters to execute the DescribeSpotFleetInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the events for the specified Spot Fleet request during the specified time.
Spot Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. Spot Fleet events are available for 48 hours.
For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide for Linux Instances.
See
AWSEC2DescribeSpotFleetRequestHistoryRequest
See
AWSEC2DescribeSpotFleetRequestHistoryResponse
Declaration
Objective-C
- (id)describeSpotFleetRequestHistory: (nonnull AWSEC2DescribeSpotFleetRequestHistoryRequest *)request;Swift
func describeSpotFleetRequestHistory(_ request: AWSEC2DescribeSpotFleetRequestHistoryRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSpotFleetRequestHistory service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSpotFleetRequestHistoryResponse. -
Describes the events for the specified Spot Fleet request during the specified time.
Spot Fleet events are delayed by up to 30 seconds before they can be described. This ensures that you can query by the last evaluated time and not miss a recorded event. Spot Fleet events are available for 48 hours.
For more information, see Monitor fleet events using Amazon EventBridge in the Amazon EC2 User Guide for Linux Instances.
See
AWSEC2DescribeSpotFleetRequestHistoryRequest
See
AWSEC2DescribeSpotFleetRequestHistoryResponse
Declaration
Objective-C
- (void)describeSpotFleetRequestHistory: (nonnull AWSEC2DescribeSpotFleetRequestHistoryRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeSpotFleetRequestHistoryResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSpotFleetRequestHistory(_ request: AWSEC2DescribeSpotFleetRequestHistoryRequest) async throws -> AWSEC2DescribeSpotFleetRequestHistoryResponseParameters
requestA container for the necessary parameters to execute the DescribeSpotFleetRequestHistory service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes your Spot Fleet requests.
Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.
See
AWSEC2DescribeSpotFleetRequestsRequest
See
AWSEC2DescribeSpotFleetRequestsResponse
Declaration
Objective-C
- (id)describeSpotFleetRequests: (nonnull AWSEC2DescribeSpotFleetRequestsRequest *)request;Swift
func describeSpotFleetRequests(_ request: AWSEC2DescribeSpotFleetRequestsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSpotFleetRequests service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSpotFleetRequestsResponse. -
Describes your Spot Fleet requests.
Spot Fleet requests are deleted 48 hours after they are canceled and their instances are terminated.
See
AWSEC2DescribeSpotFleetRequestsRequest
See
AWSEC2DescribeSpotFleetRequestsResponse
Declaration
Objective-C
- (void)describeSpotFleetRequests: (nonnull AWSEC2DescribeSpotFleetRequestsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeSpotFleetRequestsResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSpotFleetRequests(_ request: AWSEC2DescribeSpotFleetRequestsRequest) async throws -> AWSEC2DescribeSpotFleetRequestsResponseParameters
requestA container for the necessary parameters to execute the DescribeSpotFleetRequests service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified Spot Instance requests.
You can use
DescribeSpotInstanceRequeststo find a running Spot Instance by examining the response. If the status of the Spot Instance isfulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle isspot.We recommend that you set
MaxResultsto a value between 5 and 1000 to limit the number of results returned. This paginates the output, which makes the list more manageable and returns the results faster. If the list of results exceeds yourMaxResultsvalue, then that number of results is returned along with aNextTokenvalue that can be passed to a subsequentDescribeSpotInstanceRequestsrequest to retrieve the remaining results.Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.
See
AWSEC2DescribeSpotInstanceRequestsRequest
See
AWSEC2DescribeSpotInstanceRequestsResult
Declaration
Objective-C
- (id)describeSpotInstanceRequests: (nonnull AWSEC2DescribeSpotInstanceRequestsRequest *)request;Swift
func describeSpotInstanceRequests(_ request: AWSEC2DescribeSpotInstanceRequestsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSpotInstanceRequests service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSpotInstanceRequestsResult. -
Describes the specified Spot Instance requests.
You can use
DescribeSpotInstanceRequeststo find a running Spot Instance by examining the response. If the status of the Spot Instance isfulfilled, the instance ID appears in the response and contains the identifier of the instance. Alternatively, you can use DescribeInstances with a filter to look for instances where the instance lifecycle isspot.We recommend that you set
MaxResultsto a value between 5 and 1000 to limit the number of results returned. This paginates the output, which makes the list more manageable and returns the results faster. If the list of results exceeds yourMaxResultsvalue, then that number of results is returned along with aNextTokenvalue that can be passed to a subsequentDescribeSpotInstanceRequestsrequest to retrieve the remaining results.Spot Instance requests are deleted four hours after they are canceled and their instances are terminated.
See
AWSEC2DescribeSpotInstanceRequestsRequest
See
AWSEC2DescribeSpotInstanceRequestsResult
Declaration
Objective-C
- (void)describeSpotInstanceRequests: (nonnull AWSEC2DescribeSpotInstanceRequestsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeSpotInstanceRequestsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSpotInstanceRequests(_ request: AWSEC2DescribeSpotInstanceRequestsRequest) async throws -> AWSEC2DescribeSpotInstanceRequestsResultParameters
requestA container for the necessary parameters to execute the DescribeSpotInstanceRequests service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the Spot price history. For more information, see Spot Instance pricing history in the Amazon EC2 User Guide for Linux Instances.
When you specify a start and end time, the operation returns the prices of the instance types within that time range. It also returns the last price change before the start time, which is the effective price as of the start time.
See
AWSEC2DescribeSpotPriceHistoryRequest
See
AWSEC2DescribeSpotPriceHistoryResult
Declaration
Objective-C
- (id)describeSpotPriceHistory: (nonnull AWSEC2DescribeSpotPriceHistoryRequest *)request;Swift
func describeSpotPriceHistory(_ request: AWSEC2DescribeSpotPriceHistoryRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSpotPriceHistory service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSpotPriceHistoryResult. -
Describes the Spot price history. For more information, see Spot Instance pricing history in the Amazon EC2 User Guide for Linux Instances.
When you specify a start and end time, the operation returns the prices of the instance types within that time range. It also returns the last price change before the start time, which is the effective price as of the start time.
See
AWSEC2DescribeSpotPriceHistoryRequest
See
AWSEC2DescribeSpotPriceHistoryResult
Declaration
Objective-C
- (void)describeSpotPriceHistory: (nonnull AWSEC2DescribeSpotPriceHistoryRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeSpotPriceHistoryResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSpotPriceHistory(_ request: AWSEC2DescribeSpotPriceHistoryRequest) async throws -> AWSEC2DescribeSpotPriceHistoryResultParameters
requestA container for the necessary parameters to execute the DescribeSpotPriceHistory service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
[VPC only] Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in the same VPC or in a peer VPC, or if they reference a security group in a peer VPC for which the VPC peering connection has been deleted.
See
AWSEC2DescribeStaleSecurityGroupsRequest
See
AWSEC2DescribeStaleSecurityGroupsResult
Declaration
Objective-C
- (id)describeStaleSecurityGroups: (nonnull AWSEC2DescribeStaleSecurityGroupsRequest *)request;Swift
func describeStaleSecurityGroups(_ request: AWSEC2DescribeStaleSecurityGroupsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeStaleSecurityGroups service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeStaleSecurityGroupsResult. -
[VPC only] Describes the stale security group rules for security groups in a specified VPC. Rules are stale when they reference a deleted security group in the same VPC or in a peer VPC, or if they reference a security group in a peer VPC for which the VPC peering connection has been deleted.
See
AWSEC2DescribeStaleSecurityGroupsRequest
See
AWSEC2DescribeStaleSecurityGroupsResult
Declaration
Objective-C
- (void)describeStaleSecurityGroups: (nonnull AWSEC2DescribeStaleSecurityGroupsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeStaleSecurityGroupsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeStaleSecurityGroups(_ request: AWSEC2DescribeStaleSecurityGroupsRequest) async throws -> AWSEC2DescribeStaleSecurityGroupsResultParameters
requestA container for the necessary parameters to execute the DescribeStaleSecurityGroups service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the progress of the AMI store tasks. You can describe the store tasks for specified AMIs. If you don’t specify the AMIs, you get a paginated list of store tasks from the last 31 days.
For each AMI task, the response indicates if the task is
InProgress,Completed, orFailed. For tasksInProgress, the response shows the estimated progress as a percentage.Tasks are listed in reverse chronological order. Currently, only tasks from the past 31 days can be viewed.
To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
For more information, see Store and restore an AMI using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeStoreImageTasksRequest
See
AWSEC2DescribeStoreImageTasksResult
Declaration
Objective-C
- (id)describeStoreImageTasks: (nonnull AWSEC2DescribeStoreImageTasksRequest *)request;Swift
func describeStoreImageTasks(_ request: AWSEC2DescribeStoreImageTasksRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeStoreImageTasks service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeStoreImageTasksResult. -
Describes the progress of the AMI store tasks. You can describe the store tasks for specified AMIs. If you don’t specify the AMIs, you get a paginated list of store tasks from the last 31 days.
For each AMI task, the response indicates if the task is
InProgress,Completed, orFailed. For tasksInProgress, the response shows the estimated progress as a percentage.Tasks are listed in reverse chronological order. Currently, only tasks from the past 31 days can be viewed.
To use this API, you must have the required permissions. For more information, see Permissions for storing and restoring AMIs using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
For more information, see Store and restore an AMI using Amazon S3 in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeStoreImageTasksRequest
See
AWSEC2DescribeStoreImageTasksResult
Declaration
Objective-C
- (void) describeStoreImageTasks: (nonnull AWSEC2DescribeStoreImageTasksRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeStoreImageTasksResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeStoreImageTasks(_ request: AWSEC2DescribeStoreImageTasksRequest) async throws -> AWSEC2DescribeStoreImageTasksResultParameters
requestA container for the necessary parameters to execute the DescribeStoreImageTasks service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your subnets.
For more information, see Your VPC and subnets in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DescribeSubnetsRequest
See
AWSEC2DescribeSubnetsResult
Declaration
Objective-C
- (id)describeSubnets:(nonnull AWSEC2DescribeSubnetsRequest *)request;Swift
func describeSubnets(_ request: AWSEC2DescribeSubnetsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeSubnets service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeSubnetsResult. -
Describes one or more of your subnets.
For more information, see Your VPC and subnets in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DescribeSubnetsRequest
See
AWSEC2DescribeSubnetsResult
Declaration
Objective-C
- (void)describeSubnets:(nonnull AWSEC2DescribeSubnetsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeSubnetsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeSubnets(_ request: AWSEC2DescribeSubnetsRequest) async throws -> AWSEC2DescribeSubnetsResultParameters
requestA container for the necessary parameters to execute the DescribeSubnets service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified tags for your EC2 resources.
For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeTagsRequest
See
AWSEC2DescribeTagsResult
Declaration
Objective-C
- (id)describeTags:(nonnull AWSEC2DescribeTagsRequest *)request;Swift
func describeTags(_ request: AWSEC2DescribeTagsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTags service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTagsResult. -
Describes the specified tags for your EC2 resources.
For more information about tags, see Tagging Your Resources in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeTagsRequest
See
AWSEC2DescribeTagsResult
Declaration
Objective-C
- (void)describeTags:(nonnull AWSEC2DescribeTagsRequest *)request completionHandler:(void (^_Nullable)(AWSEC2DescribeTagsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTags(_ request: AWSEC2DescribeTagsRequest) async throws -> AWSEC2DescribeTagsResultParameters
requestA container for the necessary parameters to execute the DescribeTags service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more Traffic Mirror filters.
See
AWSEC2DescribeTrafficMirrorFiltersRequest
See
AWSEC2DescribeTrafficMirrorFiltersResult
Declaration
Objective-C
- (id)describeTrafficMirrorFilters: (nonnull AWSEC2DescribeTrafficMirrorFiltersRequest *)request;Swift
func describeTrafficMirrorFilters(_ request: AWSEC2DescribeTrafficMirrorFiltersRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTrafficMirrorFilters service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTrafficMirrorFiltersResult. -
Describes one or more Traffic Mirror filters.
See
AWSEC2DescribeTrafficMirrorFiltersRequest
See
AWSEC2DescribeTrafficMirrorFiltersResult
Declaration
Objective-C
- (void)describeTrafficMirrorFilters: (nonnull AWSEC2DescribeTrafficMirrorFiltersRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeTrafficMirrorFiltersResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTrafficMirrorFilters(_ request: AWSEC2DescribeTrafficMirrorFiltersRequest) async throws -> AWSEC2DescribeTrafficMirrorFiltersResultParameters
requestA container for the necessary parameters to execute the DescribeTrafficMirrorFilters service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results.
See
AWSEC2DescribeTrafficMirrorSessionsRequest
See
AWSEC2DescribeTrafficMirrorSessionsResult
Declaration
Objective-C
- (id)describeTrafficMirrorSessions: (nonnull AWSEC2DescribeTrafficMirrorSessionsRequest *)request;Swift
func describeTrafficMirrorSessions(_ request: AWSEC2DescribeTrafficMirrorSessionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTrafficMirrorSessions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTrafficMirrorSessionsResult. -
Describes one or more Traffic Mirror sessions. By default, all Traffic Mirror sessions are described. Alternatively, you can filter the results.
See
AWSEC2DescribeTrafficMirrorSessionsRequest
See
AWSEC2DescribeTrafficMirrorSessionsResult
Declaration
Objective-C
- (void) describeTrafficMirrorSessions: (nonnull AWSEC2DescribeTrafficMirrorSessionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeTrafficMirrorSessionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTrafficMirrorSessions(_ request: AWSEC2DescribeTrafficMirrorSessionsRequest) async throws -> AWSEC2DescribeTrafficMirrorSessionsResultParameters
requestA container for the necessary parameters to execute the DescribeTrafficMirrorSessions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Information about one or more Traffic Mirror targets.
See
AWSEC2DescribeTrafficMirrorTargetsRequest
See
AWSEC2DescribeTrafficMirrorTargetsResult
Declaration
Objective-C
- (id)describeTrafficMirrorTargets: (nonnull AWSEC2DescribeTrafficMirrorTargetsRequest *)request;Swift
func describeTrafficMirrorTargets(_ request: AWSEC2DescribeTrafficMirrorTargetsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTrafficMirrorTargets service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTrafficMirrorTargetsResult. -
Information about one or more Traffic Mirror targets.
See
AWSEC2DescribeTrafficMirrorTargetsRequest
See
AWSEC2DescribeTrafficMirrorTargetsResult
Declaration
Objective-C
- (void)describeTrafficMirrorTargets: (nonnull AWSEC2DescribeTrafficMirrorTargetsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeTrafficMirrorTargetsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTrafficMirrorTargets(_ request: AWSEC2DescribeTrafficMirrorTargetsRequest) async throws -> AWSEC2DescribeTrafficMirrorTargetsResultParameters
requestA container for the necessary parameters to execute the DescribeTrafficMirrorTargets service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more attachments between resources and transit gateways. By default, all attachments are described. Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner.
See
AWSEC2DescribeTransitGatewayAttachmentsRequest
See
AWSEC2DescribeTransitGatewayAttachmentsResult
Declaration
Objective-C
- (id)describeTransitGatewayAttachments: (nonnull AWSEC2DescribeTransitGatewayAttachmentsRequest *)request;Swift
func describeTransitGatewayAttachments(_ request: AWSEC2DescribeTransitGatewayAttachmentsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayAttachments service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTransitGatewayAttachmentsResult. -
Describes one or more attachments between resources and transit gateways. By default, all attachments are described. Alternatively, you can filter the results by attachment ID, attachment state, resource ID, or resource owner.
See
AWSEC2DescribeTransitGatewayAttachmentsRequest
See
AWSEC2DescribeTransitGatewayAttachmentsResult
Declaration
Objective-C
- (void)describeTransitGatewayAttachments: (nonnull AWSEC2DescribeTransitGatewayAttachmentsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeTransitGatewayAttachmentsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTransitGatewayAttachments(_ request: AWSEC2DescribeTransitGatewayAttachmentsRequest) async throws -> AWSEC2DescribeTransitGatewayAttachmentsResultParameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayAttachments service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more Connect peers.
See
AWSEC2DescribeTransitGatewayConnectPeersRequest
See
AWSEC2DescribeTransitGatewayConnectPeersResult
Declaration
Objective-C
- (id)describeTransitGatewayConnectPeers: (nonnull AWSEC2DescribeTransitGatewayConnectPeersRequest *)request;Swift
func describeTransitGatewayConnectPeers(_ request: AWSEC2DescribeTransitGatewayConnectPeersRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayConnectPeers service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTransitGatewayConnectPeersResult. -
Describes one or more Connect peers.
See
AWSEC2DescribeTransitGatewayConnectPeersRequest
See
AWSEC2DescribeTransitGatewayConnectPeersResult
Declaration
Objective-C
- (void)describeTransitGatewayConnectPeers: (nonnull AWSEC2DescribeTransitGatewayConnectPeersRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeTransitGatewayConnectPeersResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTransitGatewayConnectPeers(_ request: AWSEC2DescribeTransitGatewayConnectPeersRequest) async throws -> AWSEC2DescribeTransitGatewayConnectPeersResultParameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayConnectPeers service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more Connect attachments.
See
AWSEC2DescribeTransitGatewayConnectsRequest
See
AWSEC2DescribeTransitGatewayConnectsResult
Declaration
Objective-C
- (id)describeTransitGatewayConnects: (nonnull AWSEC2DescribeTransitGatewayConnectsRequest *)request;Swift
func describeTransitGatewayConnects(_ request: AWSEC2DescribeTransitGatewayConnectsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayConnects service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTransitGatewayConnectsResult. -
Describes one or more Connect attachments.
See
AWSEC2DescribeTransitGatewayConnectsRequest
See
AWSEC2DescribeTransitGatewayConnectsResult
Declaration
Objective-C
- (void) describeTransitGatewayConnects: (nonnull AWSEC2DescribeTransitGatewayConnectsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeTransitGatewayConnectsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTransitGatewayConnects(_ request: AWSEC2DescribeTransitGatewayConnectsRequest) async throws -> AWSEC2DescribeTransitGatewayConnectsResultParameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayConnects service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more transit gateway multicast domains.
See
AWSEC2DescribeTransitGatewayMulticastDomainsRequest
See
AWSEC2DescribeTransitGatewayMulticastDomainsResult
Declaration
Objective-C
- (id)describeTransitGatewayMulticastDomains: (nonnull AWSEC2DescribeTransitGatewayMulticastDomainsRequest *)request;Swift
func describeTransitGatewayMulticastDomains(_ request: AWSEC2DescribeTransitGatewayMulticastDomainsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayMulticastDomains service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTransitGatewayMulticastDomainsResult. -
Describes one or more transit gateway multicast domains.
See
AWSEC2DescribeTransitGatewayMulticastDomainsRequest
See
AWSEC2DescribeTransitGatewayMulticastDomainsResult
Declaration
Objective-C
- (void) describeTransitGatewayMulticastDomains: (nonnull AWSEC2DescribeTransitGatewayMulticastDomainsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeTransitGatewayMulticastDomainsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTransitGatewayMulticastDomains(_ request: AWSEC2DescribeTransitGatewayMulticastDomainsRequest) async throws -> AWSEC2DescribeTransitGatewayMulticastDomainsResultParameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayMulticastDomains service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes your transit gateway peering attachments.
See
AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest
See
AWSEC2DescribeTransitGatewayPeeringAttachmentsResult
Declaration
Objective-C
- (id)describeTransitGatewayPeeringAttachments: (nonnull AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest *)request;Swift
func describeTransitGatewayPeeringAttachments(_ request: AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayPeeringAttachments service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTransitGatewayPeeringAttachmentsResult. -
Describes your transit gateway peering attachments.
See
AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest
See
AWSEC2DescribeTransitGatewayPeeringAttachmentsResult
Declaration
Objective-C
- (void) describeTransitGatewayPeeringAttachments: (nonnull AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeTransitGatewayPeeringAttachmentsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTransitGatewayPeeringAttachments(_ request: AWSEC2DescribeTransitGatewayPeeringAttachmentsRequest) async throws -> AWSEC2DescribeTransitGatewayPeeringAttachmentsResultParameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayPeeringAttachments service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. Alternatively, you can filter the results.
See
AWSEC2DescribeTransitGatewayRouteTablesRequest
See
AWSEC2DescribeTransitGatewayRouteTablesResult
Declaration
Objective-C
- (id)describeTransitGatewayRouteTables: (nonnull AWSEC2DescribeTransitGatewayRouteTablesRequest *)request;Swift
func describeTransitGatewayRouteTables(_ request: AWSEC2DescribeTransitGatewayRouteTablesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayRouteTables service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTransitGatewayRouteTablesResult. -
Describes one or more transit gateway route tables. By default, all transit gateway route tables are described. Alternatively, you can filter the results.
See
AWSEC2DescribeTransitGatewayRouteTablesRequest
See
AWSEC2DescribeTransitGatewayRouteTablesResult
Declaration
Objective-C
- (void)describeTransitGatewayRouteTables: (nonnull AWSEC2DescribeTransitGatewayRouteTablesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeTransitGatewayRouteTablesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTransitGatewayRouteTables(_ request: AWSEC2DescribeTransitGatewayRouteTablesRequest) async throws -> AWSEC2DescribeTransitGatewayRouteTablesResultParameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayRouteTables service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results.
See
AWSEC2DescribeTransitGatewayVpcAttachmentsRequest
See
AWSEC2DescribeTransitGatewayVpcAttachmentsResult
Declaration
Objective-C
- (id)describeTransitGatewayVpcAttachments: (nonnull AWSEC2DescribeTransitGatewayVpcAttachmentsRequest *)request;Swift
func describeTransitGatewayVpcAttachments(_ request: AWSEC2DescribeTransitGatewayVpcAttachmentsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayVpcAttachments service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTransitGatewayVpcAttachmentsResult. -
Describes one or more VPC attachments. By default, all VPC attachments are described. Alternatively, you can filter the results.
See
AWSEC2DescribeTransitGatewayVpcAttachmentsRequest
See
AWSEC2DescribeTransitGatewayVpcAttachmentsResult
Declaration
Objective-C
- (void) describeTransitGatewayVpcAttachments: (nonnull AWSEC2DescribeTransitGatewayVpcAttachmentsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeTransitGatewayVpcAttachmentsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTransitGatewayVpcAttachments(_ request: AWSEC2DescribeTransitGatewayVpcAttachmentsRequest) async throws -> AWSEC2DescribeTransitGatewayVpcAttachmentsResultParameters
requestA container for the necessary parameters to execute the DescribeTransitGatewayVpcAttachments service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results.
See
AWSEC2DescribeTransitGatewaysRequest
See
AWSEC2DescribeTransitGatewaysResult
Declaration
Objective-C
- (id)describeTransitGateways: (nonnull AWSEC2DescribeTransitGatewaysRequest *)request;Swift
func describeTransitGateways(_ request: AWSEC2DescribeTransitGatewaysRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTransitGateways service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTransitGatewaysResult. -
Describes one or more transit gateways. By default, all transit gateways are described. Alternatively, you can filter the results.
See
AWSEC2DescribeTransitGatewaysRequest
See
AWSEC2DescribeTransitGatewaysResult
Declaration
Objective-C
- (void) describeTransitGateways: (nonnull AWSEC2DescribeTransitGatewaysRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeTransitGatewaysResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTransitGateways(_ request: AWSEC2DescribeTransitGatewaysRequest) async throws -> AWSEC2DescribeTransitGatewaysResultParameters
requestA container for the necessary parameters to execute the DescribeTransitGateways service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
This API action is currently in limited preview only. If you are interested in using this feature, contact your account manager.
Describes one or more network interface trunk associations.
See
AWSEC2DescribeTrunkInterfaceAssociationsRequest
See
AWSEC2DescribeTrunkInterfaceAssociationsResult
Declaration
Objective-C
- (id)describeTrunkInterfaceAssociations: (nonnull AWSEC2DescribeTrunkInterfaceAssociationsRequest *)request;Swift
func describeTrunkInterfaceAssociations(_ request: AWSEC2DescribeTrunkInterfaceAssociationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeTrunkInterfaceAssociations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeTrunkInterfaceAssociationsResult. -
This API action is currently in limited preview only. If you are interested in using this feature, contact your account manager.
Describes one or more network interface trunk associations.
See
AWSEC2DescribeTrunkInterfaceAssociationsRequest
See
AWSEC2DescribeTrunkInterfaceAssociationsResult
Declaration
Objective-C
- (void)describeTrunkInterfaceAssociations: (nonnull AWSEC2DescribeTrunkInterfaceAssociationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeTrunkInterfaceAssociationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeTrunkInterfaceAssociations(_ request: AWSEC2DescribeTrunkInterfaceAssociationsRequest) async throws -> AWSEC2DescribeTrunkInterfaceAssociationsResultParameters
requestA container for the necessary parameters to execute the DescribeTrunkInterfaceAssociations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified attribute of the specified volume. You can specify only one attribute at a time.
For more information about EBS volumes, see Amazon EBS volumes in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeVolumeAttributeRequest
See
AWSEC2DescribeVolumeAttributeResult
Declaration
Objective-C
- (id)describeVolumeAttribute: (nonnull AWSEC2DescribeVolumeAttributeRequest *)request;Swift
func describeVolumeAttribute(_ request: AWSEC2DescribeVolumeAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVolumeAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVolumeAttributeResult. -
Describes the specified attribute of the specified volume. You can specify only one attribute at a time.
For more information about EBS volumes, see Amazon EBS volumes in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeVolumeAttributeRequest
See
AWSEC2DescribeVolumeAttributeResult
Declaration
Objective-C
- (void) describeVolumeAttribute: (nonnull AWSEC2DescribeVolumeAttributeRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeVolumeAttributeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVolumeAttribute(_ request: AWSEC2DescribeVolumeAttributeRequest) async throws -> AWSEC2DescribeVolumeAttributeResultParameters
requestA container for the necessary parameters to execute the DescribeVolumeAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume’s underlying host. If the volume’s underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.
The
DescribeVolumeStatusoperation provides the following information about the specified volumes:Status: Reflects the current status of the volume. The possible values are
ok,impaired,warning, orinsufficient-data. If all checks pass, the overall status of the volume isok. If the check fails, the overall status isimpaired. If the status isinsufficient-data, then the checks might still be taking place on your volume at the time. We recommend that you retry the request. For more information about volume status, see Monitor the status of your volumes in the Amazon Elastic Compute Cloud User Guide.Events: Reflect the cause of a volume status and might require you to take action. For example, if your volume returns an
impairedstatus, then the volume event might bepotential-data-inconsistency. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and might have inconsistent data.Actions: Reflect the actions you might have to take in response to an event. For example, if the status of the volume is
impairedand the volume event showspotential-data-inconsistency, then the action showsenable-volume-io. This means that you may want to enable the I/O operations for the volume by calling the EnableVolumeIO action and then check the volume for data consistency.Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the
errorstate (for example, when a volume is incapable of accepting I/O.)See
AWSEC2DescribeVolumeStatusRequest
See
AWSEC2DescribeVolumeStatusResult
Declaration
Objective-C
- (id)describeVolumeStatus:(nonnull AWSEC2DescribeVolumeStatusRequest *)request;Swift
func describeVolumeStatus(_ request: AWSEC2DescribeVolumeStatusRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVolumeStatus service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVolumeStatusResult. -
Describes the status of the specified volumes. Volume status provides the result of the checks performed on your volumes to determine events that can impair the performance of your volumes. The performance of a volume can be affected if an issue occurs on the volume’s underlying host. If the volume’s underlying host experiences a power outage or system issue, after the system is restored, there could be data inconsistencies on the volume. Volume events notify you if this occurs. Volume actions notify you if any action needs to be taken in response to the event.
The
DescribeVolumeStatusoperation provides the following information about the specified volumes:Status: Reflects the current status of the volume. The possible values are
ok,impaired,warning, orinsufficient-data. If all checks pass, the overall status of the volume isok. If the check fails, the overall status isimpaired. If the status isinsufficient-data, then the checks might still be taking place on your volume at the time. We recommend that you retry the request. For more information about volume status, see Monitor the status of your volumes in the Amazon Elastic Compute Cloud User Guide.Events: Reflect the cause of a volume status and might require you to take action. For example, if your volume returns an
impairedstatus, then the volume event might bepotential-data-inconsistency. This means that your volume has been affected by an issue with the underlying host, has all I/O operations disabled, and might have inconsistent data.Actions: Reflect the actions you might have to take in response to an event. For example, if the status of the volume is
impairedand the volume event showspotential-data-inconsistency, then the action showsenable-volume-io. This means that you may want to enable the I/O operations for the volume by calling the EnableVolumeIO action and then check the volume for data consistency.Volume status is based on the volume status checks, and does not reflect the volume state. Therefore, volume status does not indicate volumes in the
errorstate (for example, when a volume is incapable of accepting I/O.)See
AWSEC2DescribeVolumeStatusRequest
See
AWSEC2DescribeVolumeStatusResult
Declaration
Objective-C
- (void)describeVolumeStatus: (nonnull AWSEC2DescribeVolumeStatusRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeVolumeStatusResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVolumeStatus(_ request: AWSEC2DescribeVolumeStatusRequest) async throws -> AWSEC2DescribeVolumeStatusResultParameters
requestA container for the necessary parameters to execute the DescribeVolumeStatus service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified EBS volumes or all of your EBS volumes.
If you are describing a long list of volumes, we recommend that you paginate the output to make the list more manageable. The
MaxResultsparameter sets the maximum number of results returned in a single page. If the list of results exceeds yourMaxResultsvalue, then that number of results is returned along with aNextTokenvalue that can be passed to a subsequentDescribeVolumesrequest to retrieve the remaining results.For more information about EBS volumes, see Amazon EBS volumes in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeVolumesRequest
See
AWSEC2DescribeVolumesResult
Declaration
Objective-C
- (id)describeVolumes:(nonnull AWSEC2DescribeVolumesRequest *)request;Swift
func describeVolumes(_ request: AWSEC2DescribeVolumesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVolumes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVolumesResult. -
Describes the specified EBS volumes or all of your EBS volumes.
If you are describing a long list of volumes, we recommend that you paginate the output to make the list more manageable. The
MaxResultsparameter sets the maximum number of results returned in a single page. If the list of results exceeds yourMaxResultsvalue, then that number of results is returned along with aNextTokenvalue that can be passed to a subsequentDescribeVolumesrequest to retrieve the remaining results.For more information about EBS volumes, see Amazon EBS volumes in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeVolumesRequest
See
AWSEC2DescribeVolumesResult
Declaration
Objective-C
- (void)describeVolumes:(nonnull AWSEC2DescribeVolumesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeVolumesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVolumes(_ request: AWSEC2DescribeVolumesRequest) async throws -> AWSEC2DescribeVolumesResultParameters
requestA container for the necessary parameters to execute the DescribeVolumes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the most recent volume modification request for the specified EBS volumes.
If a volume has never been modified, some information in the output will be null. If a volume has been modified more than once, the output includes only the most recent modification request.
You can also use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. For more information, see Monitor the progress of volume modifications in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeVolumesModificationsRequest
See
AWSEC2DescribeVolumesModificationsResult
Declaration
Objective-C
- (id)describeVolumesModifications: (nonnull AWSEC2DescribeVolumesModificationsRequest *)request;Swift
func describeVolumesModifications(_ request: AWSEC2DescribeVolumesModificationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVolumesModifications service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVolumesModificationsResult. -
Describes the most recent volume modification request for the specified EBS volumes.
If a volume has never been modified, some information in the output will be null. If a volume has been modified more than once, the output includes only the most recent modification request.
You can also use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. For more information, see Monitor the progress of volume modifications in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeVolumesModificationsRequest
See
AWSEC2DescribeVolumesModificationsResult
Declaration
Objective-C
- (void)describeVolumesModifications: (nonnull AWSEC2DescribeVolumesModificationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeVolumesModificationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVolumesModifications(_ request: AWSEC2DescribeVolumesModificationsRequest) async throws -> AWSEC2DescribeVolumesModificationsResultParameters
requestA container for the necessary parameters to execute the DescribeVolumesModifications service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.
See
AWSEC2DescribeVpcAttributeRequest
See
AWSEC2DescribeVpcAttributeResult
Declaration
Objective-C
- (id)describeVpcAttribute:(nonnull AWSEC2DescribeVpcAttributeRequest *)request;Swift
func describeVpcAttribute(_ request: AWSEC2DescribeVpcAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpcAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpcAttributeResult. -
Describes the specified attribute of the specified VPC. You can specify only one attribute at a time.
See
AWSEC2DescribeVpcAttributeRequest
See
AWSEC2DescribeVpcAttributeResult
Declaration
Objective-C
- (void)describeVpcAttribute: (nonnull AWSEC2DescribeVpcAttributeRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeVpcAttributeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpcAttribute(_ request: AWSEC2DescribeVpcAttributeRequest) async throws -> AWSEC2DescribeVpcAttributeResultParameters
requestA container for the necessary parameters to execute the DescribeVpcAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the ClassicLink status of one or more VPCs.
See
AWSEC2DescribeVpcClassicLinkRequest
See
AWSEC2DescribeVpcClassicLinkResult
Declaration
Objective-C
- (id)describeVpcClassicLink: (nonnull AWSEC2DescribeVpcClassicLinkRequest *)request;Swift
func describeVpcClassicLink(_ request: AWSEC2DescribeVpcClassicLinkRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpcClassicLink service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpcClassicLinkResult. -
Describes the ClassicLink status of one or more VPCs.
See
AWSEC2DescribeVpcClassicLinkRequest
See
AWSEC2DescribeVpcClassicLinkResult
Declaration
Objective-C
- (void) describeVpcClassicLink: (nonnull AWSEC2DescribeVpcClassicLinkRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeVpcClassicLinkResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpcClassicLink(_ request: AWSEC2DescribeVpcClassicLinkRequest) async throws -> AWSEC2DescribeVpcClassicLinkResultParameters
requestA container for the necessary parameters to execute the DescribeVpcClassicLink service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it’s linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeVpcClassicLinkDnsSupportRequest
See
AWSEC2DescribeVpcClassicLinkDnsSupportResult
Declaration
Objective-C
- (id)describeVpcClassicLinkDnsSupport: (nonnull AWSEC2DescribeVpcClassicLinkDnsSupportRequest *)request;Swift
func describeVpcClassicLinkDnsSupport(_ request: AWSEC2DescribeVpcClassicLinkDnsSupportRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpcClassicLinkDnsSupport service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpcClassicLinkDnsSupportResult. -
Describes the ClassicLink DNS support status of one or more VPCs. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it’s linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DescribeVpcClassicLinkDnsSupportRequest
See
AWSEC2DescribeVpcClassicLinkDnsSupportResult
Declaration
Objective-C
- (void)describeVpcClassicLinkDnsSupport: (nonnull AWSEC2DescribeVpcClassicLinkDnsSupportRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeVpcClassicLinkDnsSupportResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpcClassicLinkDnsSupport(_ request: AWSEC2DescribeVpcClassicLinkDnsSupportRequest) async throws -> AWSEC2DescribeVpcClassicLinkDnsSupportResultParameters
requestA container for the necessary parameters to execute the DescribeVpcClassicLinkDnsSupport service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the connection notifications for VPC endpoints and VPC endpoint services.
See
AWSEC2DescribeVpcEndpointConnectionNotificationsRequest
See
AWSEC2DescribeVpcEndpointConnectionNotificationsResult
Declaration
Objective-C
- (id)describeVpcEndpointConnectionNotifications: (nonnull AWSEC2DescribeVpcEndpointConnectionNotificationsRequest *)request;Swift
func describeVpcEndpointConnectionNotifications(_ request: AWSEC2DescribeVpcEndpointConnectionNotificationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpcEndpointConnectionNotifications service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpcEndpointConnectionNotificationsResult. -
Describes the connection notifications for VPC endpoints and VPC endpoint services.
See
AWSEC2DescribeVpcEndpointConnectionNotificationsRequest
See
AWSEC2DescribeVpcEndpointConnectionNotificationsResult
Declaration
Objective-C
- (void) describeVpcEndpointConnectionNotifications: (nonnull AWSEC2DescribeVpcEndpointConnectionNotificationsRequest *) request completionHandler: (void (^_Nullable)( AWSEC2DescribeVpcEndpointConnectionNotificationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpcEndpointConnectionNotifications(_ request: AWSEC2DescribeVpcEndpointConnectionNotificationsRequest) async throws -> AWSEC2DescribeVpcEndpointConnectionNotificationsResultParameters
requestA container for the necessary parameters to execute the DescribeVpcEndpointConnectionNotifications service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance.
See
AWSEC2DescribeVpcEndpointConnectionsRequest
See
AWSEC2DescribeVpcEndpointConnectionsResult
Declaration
Objective-C
- (id)describeVpcEndpointConnections: (nonnull AWSEC2DescribeVpcEndpointConnectionsRequest *)request;Swift
func describeVpcEndpointConnections(_ request: AWSEC2DescribeVpcEndpointConnectionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpcEndpointConnections service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpcEndpointConnectionsResult. -
Describes the VPC endpoint connections to your VPC endpoint services, including any endpoints that are pending your acceptance.
See
AWSEC2DescribeVpcEndpointConnectionsRequest
See
AWSEC2DescribeVpcEndpointConnectionsResult
Declaration
Objective-C
- (void) describeVpcEndpointConnections: (nonnull AWSEC2DescribeVpcEndpointConnectionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeVpcEndpointConnectionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpcEndpointConnections(_ request: AWSEC2DescribeVpcEndpointConnectionsRequest) async throws -> AWSEC2DescribeVpcEndpointConnectionsResultParameters
requestA container for the necessary parameters to execute the DescribeVpcEndpointConnections service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the VPC endpoint service configurations in your account (your services).
See
AWSEC2DescribeVpcEndpointServiceConfigurationsRequest
See
AWSEC2DescribeVpcEndpointServiceConfigurationsResult
Declaration
Objective-C
- (id)describeVpcEndpointServiceConfigurations: (nonnull AWSEC2DescribeVpcEndpointServiceConfigurationsRequest *)request;Swift
func describeVpcEndpointServiceConfigurations(_ request: AWSEC2DescribeVpcEndpointServiceConfigurationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpcEndpointServiceConfigurations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpcEndpointServiceConfigurationsResult. -
Describes the VPC endpoint service configurations in your account (your services).
See
AWSEC2DescribeVpcEndpointServiceConfigurationsRequest
See
AWSEC2DescribeVpcEndpointServiceConfigurationsResult
Declaration
Objective-C
- (void) describeVpcEndpointServiceConfigurations: (nonnull AWSEC2DescribeVpcEndpointServiceConfigurationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeVpcEndpointServiceConfigurationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpcEndpointServiceConfigurations(_ request: AWSEC2DescribeVpcEndpointServiceConfigurationsRequest) async throws -> AWSEC2DescribeVpcEndpointServiceConfigurationsResultParameters
requestA container for the necessary parameters to execute the DescribeVpcEndpointServiceConfigurations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the principals (service consumers) that are permitted to discover your VPC endpoint service.
See
AWSEC2DescribeVpcEndpointServicePermissionsRequest
See
AWSEC2DescribeVpcEndpointServicePermissionsResult
Declaration
Objective-C
- (id)describeVpcEndpointServicePermissions: (nonnull AWSEC2DescribeVpcEndpointServicePermissionsRequest *)request;Swift
func describeVpcEndpointServicePermissions(_ request: AWSEC2DescribeVpcEndpointServicePermissionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpcEndpointServicePermissions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpcEndpointServicePermissionsResult. -
Describes the principals (service consumers) that are permitted to discover your VPC endpoint service.
See
AWSEC2DescribeVpcEndpointServicePermissionsRequest
See
AWSEC2DescribeVpcEndpointServicePermissionsResult
Declaration
Objective-C
- (void) describeVpcEndpointServicePermissions: (nonnull AWSEC2DescribeVpcEndpointServicePermissionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeVpcEndpointServicePermissionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpcEndpointServicePermissions(_ request: AWSEC2DescribeVpcEndpointServicePermissionsRequest) async throws -> AWSEC2DescribeVpcEndpointServicePermissionsResultParameters
requestA container for the necessary parameters to execute the DescribeVpcEndpointServicePermissions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes available services to which you can create a VPC endpoint.
When the service provider and the consumer have different accounts in multiple Availability Zones, and the consumer views the VPC endpoint service information, the response only includes the common Availability Zones. For example, when the service provider account uses
us-east-1aandus-east-1cand the consumer usesus-east-1aandus-east-1b, the response includes the VPC endpoint services in the common Availability Zone,us-east-1a.See
AWSEC2DescribeVpcEndpointServicesRequest
See
AWSEC2DescribeVpcEndpointServicesResult
Declaration
Objective-C
- (id)describeVpcEndpointServices: (nonnull AWSEC2DescribeVpcEndpointServicesRequest *)request;Swift
func describeVpcEndpointServices(_ request: AWSEC2DescribeVpcEndpointServicesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpcEndpointServices service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpcEndpointServicesResult. -
Describes available services to which you can create a VPC endpoint.
When the service provider and the consumer have different accounts in multiple Availability Zones, and the consumer views the VPC endpoint service information, the response only includes the common Availability Zones. For example, when the service provider account uses
us-east-1aandus-east-1cand the consumer usesus-east-1aandus-east-1b, the response includes the VPC endpoint services in the common Availability Zone,us-east-1a.See
AWSEC2DescribeVpcEndpointServicesRequest
See
AWSEC2DescribeVpcEndpointServicesResult
Declaration
Objective-C
- (void)describeVpcEndpointServices: (nonnull AWSEC2DescribeVpcEndpointServicesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeVpcEndpointServicesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpcEndpointServices(_ request: AWSEC2DescribeVpcEndpointServicesRequest) async throws -> AWSEC2DescribeVpcEndpointServicesResultParameters
requestA container for the necessary parameters to execute the DescribeVpcEndpointServices service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your VPC endpoints.
See
AWSEC2DescribeVpcEndpointsRequest
See
AWSEC2DescribeVpcEndpointsResult
Declaration
Objective-C
- (id)describeVpcEndpoints:(nonnull AWSEC2DescribeVpcEndpointsRequest *)request;Swift
func describeVpcEndpoints(_ request: AWSEC2DescribeVpcEndpointsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpcEndpoints service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpcEndpointsResult. -
Describes one or more of your VPC endpoints.
See
AWSEC2DescribeVpcEndpointsRequest
See
AWSEC2DescribeVpcEndpointsResult
Declaration
Objective-C
- (void)describeVpcEndpoints: (nonnull AWSEC2DescribeVpcEndpointsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeVpcEndpointsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpcEndpoints(_ request: AWSEC2DescribeVpcEndpointsRequest) async throws -> AWSEC2DescribeVpcEndpointsResultParameters
requestA container for the necessary parameters to execute the DescribeVpcEndpoints service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your VPC peering connections.
See
AWSEC2DescribeVpcPeeringConnectionsRequest
See
AWSEC2DescribeVpcPeeringConnectionsResult
Declaration
Objective-C
- (id)describeVpcPeeringConnections: (nonnull AWSEC2DescribeVpcPeeringConnectionsRequest *)request;Swift
func describeVpcPeeringConnections(_ request: AWSEC2DescribeVpcPeeringConnectionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpcPeeringConnections service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpcPeeringConnectionsResult. -
Describes one or more of your VPC peering connections.
See
AWSEC2DescribeVpcPeeringConnectionsRequest
See
AWSEC2DescribeVpcPeeringConnectionsResult
Declaration
Objective-C
- (void) describeVpcPeeringConnections: (nonnull AWSEC2DescribeVpcPeeringConnectionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DescribeVpcPeeringConnectionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpcPeeringConnections(_ request: AWSEC2DescribeVpcPeeringConnectionsRequest) async throws -> AWSEC2DescribeVpcPeeringConnectionsResultParameters
requestA container for the necessary parameters to execute the DescribeVpcPeeringConnections service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your VPCs.
See
AWSEC2DescribeVpcsRequest
See
AWSEC2DescribeVpcsResult
Declaration
Objective-C
- (id)describeVpcs:(nonnull AWSEC2DescribeVpcsRequest *)request;Swift
func describeVpcs(_ request: AWSEC2DescribeVpcsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpcs service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpcsResult. -
Describes one or more of your VPCs.
See
AWSEC2DescribeVpcsRequest
See
AWSEC2DescribeVpcsResult
Declaration
Objective-C
- (void)describeVpcs:(nonnull AWSEC2DescribeVpcsRequest *)request completionHandler:(void (^_Nullable)(AWSEC2DescribeVpcsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpcs(_ request: AWSEC2DescribeVpcsRequest) async throws -> AWSEC2DescribeVpcsResultParameters
requestA container for the necessary parameters to execute the DescribeVpcs service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your VPN connections.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2DescribeVpnConnectionsRequest
See
AWSEC2DescribeVpnConnectionsResult
Declaration
Objective-C
- (id)describeVpnConnections: (nonnull AWSEC2DescribeVpnConnectionsRequest *)request;Swift
func describeVpnConnections(_ request: AWSEC2DescribeVpnConnectionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpnConnections service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpnConnectionsResult. -
Describes one or more of your VPN connections.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2DescribeVpnConnectionsRequest
See
AWSEC2DescribeVpnConnectionsResult
Declaration
Objective-C
- (void) describeVpnConnections: (nonnull AWSEC2DescribeVpnConnectionsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeVpnConnectionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpnConnections(_ request: AWSEC2DescribeVpnConnectionsRequest) async throws -> AWSEC2DescribeVpnConnectionsResultParameters
requestA container for the necessary parameters to execute the DescribeVpnConnections service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes one or more of your virtual private gateways.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2DescribeVpnGatewaysRequest
See
AWSEC2DescribeVpnGatewaysResult
Declaration
Objective-C
- (id)describeVpnGateways:(nonnull AWSEC2DescribeVpnGatewaysRequest *)request;Swift
func describeVpnGateways(_ request: AWSEC2DescribeVpnGatewaysRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DescribeVpnGateways service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DescribeVpnGatewaysResult. -
Describes one or more of your virtual private gateways.
For more information, see Amazon Web Services Site-to-Site VPN in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2DescribeVpnGatewaysRequest
See
AWSEC2DescribeVpnGatewaysResult
Declaration
Objective-C
- (void)describeVpnGateways:(nonnull AWSEC2DescribeVpnGatewaysRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DescribeVpnGatewaysResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func describeVpnGateways(_ request: AWSEC2DescribeVpnGatewaysRequest) async throws -> AWSEC2DescribeVpnGatewaysResultParameters
requestA container for the necessary parameters to execute the DescribeVpnGateways service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it’s stopped.
See
AWSEC2DetachClassicLinkVpcRequest
See
AWSEC2DetachClassicLinkVpcResult
Declaration
Objective-C
- (id)detachClassicLinkVpc:(nonnull AWSEC2DetachClassicLinkVpcRequest *)request;Swift
func detachClassicLinkVpc(_ request: AWSEC2DetachClassicLinkVpcRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DetachClassicLinkVpc service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DetachClassicLinkVpcResult. -
Unlinks (detaches) a linked EC2-Classic instance from a VPC. After the instance has been unlinked, the VPC security groups are no longer associated with it. An instance is automatically unlinked from a VPC when it’s stopped.
See
AWSEC2DetachClassicLinkVpcRequest
See
AWSEC2DetachClassicLinkVpcResult
Declaration
Objective-C
- (void)detachClassicLinkVpc: (nonnull AWSEC2DetachClassicLinkVpcRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DetachClassicLinkVpcResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func detachClassicLinkVpc(_ request: AWSEC2DetachClassicLinkVpcRequest) async throws -> AWSEC2DetachClassicLinkVpcResultParameters
requestA container for the necessary parameters to execute the DetachClassicLinkVpc service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses.
See
AWSEC2DetachInternetGatewayRequest
Declaration
Objective-C
- (id)detachInternetGateway: (nonnull AWSEC2DetachInternetGatewayRequest *)request;Swift
func detachInternetGateway(_ request: AWSEC2DetachInternetGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DetachInternetGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Detaches an internet gateway from a VPC, disabling connectivity between the internet and the VPC. The VPC must not contain any running instances with Elastic IP addresses or public IPv4 addresses.
See
AWSEC2DetachInternetGatewayRequest
Declaration
Objective-C
- (void)detachInternetGateway: (nonnull AWSEC2DetachInternetGatewayRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func detachInternetGateway(_ request: AWSEC2DetachInternetGatewayRequest) async throwsParameters
requestA container for the necessary parameters to execute the DetachInternetGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Detaches a network interface from an instance.
See
AWSEC2DetachNetworkInterfaceRequest
Declaration
Objective-C
- (id)detachNetworkInterface: (nonnull AWSEC2DetachNetworkInterfaceRequest *)request;Swift
func detachNetworkInterface(_ request: AWSEC2DetachNetworkInterfaceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DetachNetworkInterface service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Detaches a network interface from an instance.
See
AWSEC2DetachNetworkInterfaceRequest
Declaration
Objective-C
- (void)detachNetworkInterface: (nonnull AWSEC2DetachNetworkInterfaceRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func detachNetworkInterface(_ request: AWSEC2DetachNetworkInterfaceRequest) async throwsParameters
requestA container for the necessary parameters to execute the DetachNetworkInterface service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so can result in the volume becoming stuck in the
busystate while detaching. If this happens, detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot the instance, or all three. If an EBS volume is the root device of an instance, it can’t be detached while the instance is running. To detach the root volume, stop the instance first.When a volume with an Amazon Web Services Marketplace product code is detached from an instance, the product code is no longer associated with the instance.
For more information, see Detach an Amazon EBS volume in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DetachVolumeRequest
See
AWSEC2VolumeAttachment
Declaration
Objective-C
- (id)detachVolume:(nonnull AWSEC2DetachVolumeRequest *)request;Swift
func detachVolume(_ request: AWSEC2DetachVolumeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DetachVolume service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2VolumeAttachment. -
Detaches an EBS volume from an instance. Make sure to unmount any file systems on the device within your operating system before detaching the volume. Failure to do so can result in the volume becoming stuck in the
busystate while detaching. If this happens, detachment can be delayed indefinitely until you unmount the volume, force detachment, reboot the instance, or all three. If an EBS volume is the root device of an instance, it can’t be detached while the instance is running. To detach the root volume, stop the instance first.When a volume with an Amazon Web Services Marketplace product code is detached from an instance, the product code is no longer associated with the instance.
For more information, see Detach an Amazon EBS volume in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DetachVolumeRequest
See
AWSEC2VolumeAttachment
Declaration
Objective-C
- (void)detachVolume:(nonnull AWSEC2DetachVolumeRequest *)request completionHandler:(void (^_Nullable)(AWSEC2VolumeAttachment *_Nullable, NSError *_Nullable))completionHandler;Swift
func detachVolume(_ request: AWSEC2DetachVolumeRequest) async throws -> AWSEC2VolumeAttachmentParameters
requestA container for the necessary parameters to execute the DetachVolume service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Detaches a virtual private gateway from a VPC. You do this if you’re planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).
You must wait for the attachment’s state to switch to
detachedbefore you can delete the VPC or attach a different VPC to the virtual private gateway.See
AWSEC2DetachVpnGatewayRequest
Declaration
Objective-C
- (id)detachVpnGateway:(nonnull AWSEC2DetachVpnGatewayRequest *)request;Swift
func detachVpnGateway(_ request: AWSEC2DetachVpnGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DetachVpnGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Detaches a virtual private gateway from a VPC. You do this if you’re planning to turn off the VPC and not use it anymore. You can confirm a virtual private gateway has been completely detached from a VPC by describing the virtual private gateway (any attachments to the virtual private gateway are also described).
You must wait for the attachment’s state to switch to
detachedbefore you can delete the VPC or attach a different VPC to the virtual private gateway.See
AWSEC2DetachVpnGatewayRequest
Declaration
Objective-C
- (void)detachVpnGateway:(nonnull AWSEC2DetachVpnGatewayRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func detachVpnGateway(_ request: AWSEC2DetachVpnGatewayRequest) async throwsParameters
requestA container for the necessary parameters to execute the DetachVpnGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Disables EBS encryption by default for your account in the current Region.
After you disable encryption by default, you can still create encrypted volumes by enabling encryption when you create each volume.
Disabling encryption by default does not change the encryption status of your existing volumes.
For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DisableEbsEncryptionByDefaultRequest
See
AWSEC2DisableEbsEncryptionByDefaultResult
Declaration
Objective-C
- (id)disableEbsEncryptionByDefault: (nonnull AWSEC2DisableEbsEncryptionByDefaultRequest *)request;Swift
func disableEbsEncryption(byDefault request: AWSEC2DisableEbsEncryptionByDefaultRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisableEbsEncryptionByDefault service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisableEbsEncryptionByDefaultResult. -
Disables EBS encryption by default for your account in the current Region.
After you disable encryption by default, you can still create encrypted volumes by enabling encryption when you create each volume.
Disabling encryption by default does not change the encryption status of your existing volumes.
For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DisableEbsEncryptionByDefaultRequest
See
AWSEC2DisableEbsEncryptionByDefaultResult
Declaration
Objective-C
- (void) disableEbsEncryptionByDefault: (nonnull AWSEC2DisableEbsEncryptionByDefaultRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisableEbsEncryptionByDefaultResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disableEbsEncryption(byDefault request: AWSEC2DisableEbsEncryptionByDefaultRequest) async throws -> AWSEC2DisableEbsEncryptionByDefaultResultParameters
requestA container for the necessary parameters to execute the DisableEbsEncryptionByDefault service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Discontinue faster launching for a Windows AMI, and clean up existing pre-provisioned snapshots. When you disable faster launching, the AMI uses the standard launch process for each instance. All pre-provisioned snapshots must be removed before you can enable faster launching again.
To change these settings, you must own the AMI.
See
AWSEC2DisableFastLaunchRequest
See
AWSEC2DisableFastLaunchResult
Declaration
Objective-C
- (id)disableFastLaunch:(nonnull AWSEC2DisableFastLaunchRequest *)request;Swift
func disableFastLaunch(_ request: AWSEC2DisableFastLaunchRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisableFastLaunch service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisableFastLaunchResult. -
Discontinue faster launching for a Windows AMI, and clean up existing pre-provisioned snapshots. When you disable faster launching, the AMI uses the standard launch process for each instance. All pre-provisioned snapshots must be removed before you can enable faster launching again.
To change these settings, you must own the AMI.
See
AWSEC2DisableFastLaunchRequest
See
AWSEC2DisableFastLaunchResult
Declaration
Objective-C
- (void)disableFastLaunch:(nonnull AWSEC2DisableFastLaunchRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DisableFastLaunchResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disableFastLaunch(_ request: AWSEC2DisableFastLaunchRequest) async throws -> AWSEC2DisableFastLaunchResultParameters
requestA container for the necessary parameters to execute the DisableFastLaunch service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disables fast snapshot restores for the specified snapshots in the specified Availability Zones.
See
AWSEC2DisableFastSnapshotRestoresRequest
See
AWSEC2DisableFastSnapshotRestoresResult
Declaration
Objective-C
- (id)disableFastSnapshotRestores: (nonnull AWSEC2DisableFastSnapshotRestoresRequest *)request;Swift
func disableFastSnapshotRestores(_ request: AWSEC2DisableFastSnapshotRestoresRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisableFastSnapshotRestores service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisableFastSnapshotRestoresResult. -
Disables fast snapshot restores for the specified snapshots in the specified Availability Zones.
See
AWSEC2DisableFastSnapshotRestoresRequest
See
AWSEC2DisableFastSnapshotRestoresResult
Declaration
Objective-C
- (void)disableFastSnapshotRestores: (nonnull AWSEC2DisableFastSnapshotRestoresRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisableFastSnapshotRestoresResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disableFastSnapshotRestores(_ request: AWSEC2DisableFastSnapshotRestoresRequest) async throws -> AWSEC2DisableFastSnapshotRestoresResultParameters
requestA container for the necessary parameters to execute the DisableFastSnapshotRestores service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Cancels the deprecation of the specified AMI.
For more information, see Deprecate an AMI in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DisableImageDeprecationRequest
See
AWSEC2DisableImageDeprecationResult
Declaration
Objective-C
- (id)disableImageDeprecation: (nonnull AWSEC2DisableImageDeprecationRequest *)request;Swift
func disableImageDeprecation(_ request: AWSEC2DisableImageDeprecationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisableImageDeprecation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisableImageDeprecationResult. -
Cancels the deprecation of the specified AMI.
For more information, see Deprecate an AMI in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2DisableImageDeprecationRequest
See
AWSEC2DisableImageDeprecationResult
Declaration
Objective-C
- (void) disableImageDeprecation: (nonnull AWSEC2DisableImageDeprecationRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DisableImageDeprecationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disableImageDeprecation(_ request: AWSEC2DisableImageDeprecationRequest) async throws -> AWSEC2DisableImageDeprecationResultParameters
requestA container for the necessary parameters to execute the DisableImageDeprecation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disable the IPAM account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.
See
AWSEC2DisableIpamOrganizationAdminAccountRequest
See
AWSEC2DisableIpamOrganizationAdminAccountResult
Declaration
Objective-C
- (id)disableIpamOrganizationAdminAccount: (nonnull AWSEC2DisableIpamOrganizationAdminAccountRequest *)request;Swift
func disableIpamOrganizationAdminAccount(_ request: AWSEC2DisableIpamOrganizationAdminAccountRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisableIpamOrganizationAdminAccount service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisableIpamOrganizationAdminAccountResult. -
Disable the IPAM account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.
See
AWSEC2DisableIpamOrganizationAdminAccountRequest
See
AWSEC2DisableIpamOrganizationAdminAccountResult
Declaration
Objective-C
- (void) disableIpamOrganizationAdminAccount: (nonnull AWSEC2DisableIpamOrganizationAdminAccountRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisableIpamOrganizationAdminAccountResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disableIpamOrganizationAdminAccount(_ request: AWSEC2DisableIpamOrganizationAdminAccountRequest) async throws -> AWSEC2DisableIpamOrganizationAdminAccountResultParameters
requestA container for the necessary parameters to execute the DisableIpamOrganizationAdminAccount service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
See
AWSEC2DisableSerialConsoleAccessRequest
See
AWSEC2DisableSerialConsoleAccessResult
Declaration
Objective-C
- (id)disableSerialConsoleAccess: (nonnull AWSEC2DisableSerialConsoleAccessRequest *)request;Swift
func disableSerialConsoleAccess(_ request: AWSEC2DisableSerialConsoleAccessRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisableSerialConsoleAccess service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisableSerialConsoleAccessResult. -
Disables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
See
AWSEC2DisableSerialConsoleAccessRequest
See
AWSEC2DisableSerialConsoleAccessResult
Declaration
Objective-C
- (void)disableSerialConsoleAccess: (nonnull AWSEC2DisableSerialConsoleAccessRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisableSerialConsoleAccessResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disableSerialConsoleAccess(_ request: AWSEC2DisableSerialConsoleAccessRequest) async throws -> AWSEC2DisableSerialConsoleAccessResultParameters
requestA container for the necessary parameters to execute the DisableSerialConsoleAccess service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disables the specified resource attachment from propagating routes to the specified propagation route table.
See
AWSEC2DisableTransitGatewayRouteTablePropagationRequest
See
AWSEC2DisableTransitGatewayRouteTablePropagationResult
Declaration
Objective-C
- (id)disableTransitGatewayRouteTablePropagation: (nonnull AWSEC2DisableTransitGatewayRouteTablePropagationRequest *)request;Swift
func disableTransitGatewayRouteTablePropagation(_ request: AWSEC2DisableTransitGatewayRouteTablePropagationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisableTransitGatewayRouteTablePropagation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisableTransitGatewayRouteTablePropagationResult. -
Disables the specified resource attachment from propagating routes to the specified propagation route table.
See
AWSEC2DisableTransitGatewayRouteTablePropagationRequest
See
AWSEC2DisableTransitGatewayRouteTablePropagationResult
Declaration
Objective-C
- (void) disableTransitGatewayRouteTablePropagation: (nonnull AWSEC2DisableTransitGatewayRouteTablePropagationRequest *) request completionHandler: (void (^_Nullable)( AWSEC2DisableTransitGatewayRouteTablePropagationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disableTransitGatewayRouteTablePropagation(_ request: AWSEC2DisableTransitGatewayRouteTablePropagationRequest) async throws -> AWSEC2DisableTransitGatewayRouteTablePropagationResultParameters
requestA container for the necessary parameters to execute the DisableTransitGatewayRouteTablePropagation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.
See
AWSEC2DisableVgwRoutePropagationRequest
Declaration
Objective-C
- (id)disableVgwRoutePropagation: (nonnull AWSEC2DisableVgwRoutePropagationRequest *)request;Swift
func disableVgwRoutePropagation(_ request: AWSEC2DisableVgwRoutePropagationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisableVgwRoutePropagation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Disables a virtual private gateway (VGW) from propagating routes to a specified route table of a VPC.
See
AWSEC2DisableVgwRoutePropagationRequest
Declaration
Objective-C
- (void)disableVgwRoutePropagation: (nonnull AWSEC2DisableVgwRoutePropagationRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func disableVgwRoutePropagation(_ request: AWSEC2DisableVgwRoutePropagationRequest) async throwsParameters
requestA container for the necessary parameters to execute the DisableVgwRoutePropagation service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it.
See
AWSEC2DisableVpcClassicLinkRequest
See
AWSEC2DisableVpcClassicLinkResult
Declaration
Objective-C
- (id)disableVpcClassicLink: (nonnull AWSEC2DisableVpcClassicLinkRequest *)request;Swift
func disableVpcClassicLink(_ request: AWSEC2DisableVpcClassicLinkRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisableVpcClassicLink service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisableVpcClassicLinkResult. -
Disables ClassicLink for a VPC. You cannot disable ClassicLink for a VPC that has EC2-Classic instances linked to it.
See
AWSEC2DisableVpcClassicLinkRequest
See
AWSEC2DisableVpcClassicLinkResult
Declaration
Objective-C
- (void)disableVpcClassicLink: (nonnull AWSEC2DisableVpcClassicLinkRequest *)request completionHandler: (void (^_Nullable)(AWSEC2DisableVpcClassicLinkResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disableVpcClassicLink(_ request: AWSEC2DisableVpcClassicLinkRequest) async throws -> AWSEC2DisableVpcClassicLinkResultParameters
requestA container for the necessary parameters to execute the DisableVpcClassicLink service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it’s linked. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
You must specify a VPC ID in the request.
See
AWSEC2DisableVpcClassicLinkDnsSupportRequest
See
AWSEC2DisableVpcClassicLinkDnsSupportResult
Declaration
Objective-C
- (id)disableVpcClassicLinkDnsSupport: (nonnull AWSEC2DisableVpcClassicLinkDnsSupportRequest *)request;Swift
func disableVpcClassicLinkDnsSupport(_ request: AWSEC2DisableVpcClassicLinkDnsSupportRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisableVpcClassicLinkDnsSupport service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisableVpcClassicLinkDnsSupportResult. -
Disables ClassicLink DNS support for a VPC. If disabled, DNS hostnames resolve to public IP addresses when addressed between a linked EC2-Classic instance and instances in the VPC to which it’s linked. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
You must specify a VPC ID in the request.
See
AWSEC2DisableVpcClassicLinkDnsSupportRequest
See
AWSEC2DisableVpcClassicLinkDnsSupportResult
Declaration
Objective-C
- (void)disableVpcClassicLinkDnsSupport: (nonnull AWSEC2DisableVpcClassicLinkDnsSupportRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisableVpcClassicLinkDnsSupportResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disableVpcClassicLinkDnsSupport(_ request: AWSEC2DisableVpcClassicLinkDnsSupportRequest) async throws -> AWSEC2DisableVpcClassicLinkDnsSupportResultParameters
requestA container for the necessary parameters to execute the DisableVpcClassicLinkDnsSupport service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disassociates an Elastic IP address from the instance or network interface it’s associated with.
An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error.
See
AWSEC2DisassociateAddressRequest
Declaration
Objective-C
- (id)disassociateAddress:(nonnull AWSEC2DisassociateAddressRequest *)request;Swift
func disassociateAddress(_ request: AWSEC2DisassociateAddressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisassociateAddress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Disassociates an Elastic IP address from the instance or network interface it’s associated with.
An Elastic IP address is for use in either the EC2-Classic platform or in a VPC. For more information, see Elastic IP Addresses in the Amazon Elastic Compute Cloud User Guide.
This is an idempotent operation. If you perform the operation more than once, Amazon EC2 doesn’t return an error.
See
AWSEC2DisassociateAddressRequest
Declaration
Objective-C
- (void)disassociateAddress:(nonnull AWSEC2DisassociateAddressRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func disassociateAddress(_ request: AWSEC2DisassociateAddressRequest) async throwsParameters
requestA container for the necessary parameters to execute the DisassociateAddress service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Disassociates a target network from the specified Client VPN endpoint. When you disassociate the last target network from a Client VPN, the following happens:
The route that was automatically added for the VPC is deleted
All active client connections are terminated
New client connections are disallowed
The Client VPN endpoint’s status changes to
pending-associate
See
AWSEC2DisassociateClientVpnTargetNetworkRequest
See
AWSEC2DisassociateClientVpnTargetNetworkResult
Declaration
Objective-C
- (id)disassociateClientVpnTargetNetwork: (nonnull AWSEC2DisassociateClientVpnTargetNetworkRequest *)request;Swift
func disassociateClientVpnTargetNetwork(_ request: AWSEC2DisassociateClientVpnTargetNetworkRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisassociateClientVpnTargetNetwork service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisassociateClientVpnTargetNetworkResult. -
Disassociates a target network from the specified Client VPN endpoint. When you disassociate the last target network from a Client VPN, the following happens:
The route that was automatically added for the VPC is deleted
All active client connections are terminated
New client connections are disallowed
The Client VPN endpoint’s status changes to
pending-associate
See
AWSEC2DisassociateClientVpnTargetNetworkRequest
See
AWSEC2DisassociateClientVpnTargetNetworkResult
Declaration
Objective-C
- (void)disassociateClientVpnTargetNetwork: (nonnull AWSEC2DisassociateClientVpnTargetNetworkRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisassociateClientVpnTargetNetworkResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disassociateClientVpnTargetNetwork(_ request: AWSEC2DisassociateClientVpnTargetNetworkRequest) async throws -> AWSEC2DisassociateClientVpnTargetNetworkResultParameters
requestA container for the necessary parameters to execute the DisassociateClientVpnTargetNetwork service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disassociates an IAM role from an Certificate Manager (ACM) certificate. Disassociating an IAM role from an ACM certificate removes the Amazon S3 object that contains the certificate, certificate chain, and encrypted private key from the Amazon S3 bucket. It also revokes the IAM role’s permission to use the KMS key used to encrypt the private key. This effectively revokes the role’s permission to use the certificate.
See
AWSEC2DisassociateEnclaveCertificateIamRoleRequest
See
AWSEC2DisassociateEnclaveCertificateIamRoleResult
Declaration
Objective-C
- (id)disassociateEnclaveCertificateIamRole: (nonnull AWSEC2DisassociateEnclaveCertificateIamRoleRequest *)request;Swift
func disassociateEnclaveCertificateIamRole(_ request: AWSEC2DisassociateEnclaveCertificateIamRoleRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisassociateEnclaveCertificateIamRole service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisassociateEnclaveCertificateIamRoleResult. -
Disassociates an IAM role from an Certificate Manager (ACM) certificate. Disassociating an IAM role from an ACM certificate removes the Amazon S3 object that contains the certificate, certificate chain, and encrypted private key from the Amazon S3 bucket. It also revokes the IAM role’s permission to use the KMS key used to encrypt the private key. This effectively revokes the role’s permission to use the certificate.
See
AWSEC2DisassociateEnclaveCertificateIamRoleRequest
See
AWSEC2DisassociateEnclaveCertificateIamRoleResult
Declaration
Objective-C
- (void) disassociateEnclaveCertificateIamRole: (nonnull AWSEC2DisassociateEnclaveCertificateIamRoleRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisassociateEnclaveCertificateIamRoleResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disassociateEnclaveCertificateIamRole(_ request: AWSEC2DisassociateEnclaveCertificateIamRoleRequest) async throws -> AWSEC2DisassociateEnclaveCertificateIamRoleResultParameters
requestA container for the necessary parameters to execute the DisassociateEnclaveCertificateIamRole service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disassociates an IAM instance profile from a running or stopped instance.
Use DescribeIamInstanceProfileAssociations to get the association ID.
See
AWSEC2DisassociateIamInstanceProfileRequest
See
AWSEC2DisassociateIamInstanceProfileResult
Declaration
Objective-C
- (id)disassociateIamInstanceProfile: (nonnull AWSEC2DisassociateIamInstanceProfileRequest *)request;Swift
func disassociateIamInstanceProfile(_ request: AWSEC2DisassociateIamInstanceProfileRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisassociateIamInstanceProfile service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisassociateIamInstanceProfileResult. -
Disassociates an IAM instance profile from a running or stopped instance.
Use DescribeIamInstanceProfileAssociations to get the association ID.
See
AWSEC2DisassociateIamInstanceProfileRequest
See
AWSEC2DisassociateIamInstanceProfileResult
Declaration
Objective-C
- (void) disassociateIamInstanceProfile: (nonnull AWSEC2DisassociateIamInstanceProfileRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisassociateIamInstanceProfileResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disassociateIamInstanceProfile(_ request: AWSEC2DisassociateIamInstanceProfileRequest) async throws -> AWSEC2DisassociateIamInstanceProfileResultParameters
requestA container for the necessary parameters to execute the DisassociateIamInstanceProfile service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disassociates one or more targets from an event window.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2DisassociateInstanceEventWindowRequest
See
AWSEC2DisassociateInstanceEventWindowResult
Declaration
Objective-C
- (id)disassociateInstanceEventWindow: (nonnull AWSEC2DisassociateInstanceEventWindowRequest *)request;Swift
func disassociateInstanceEventWindow(_ request: AWSEC2DisassociateInstanceEventWindowRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisassociateInstanceEventWindow service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisassociateInstanceEventWindowResult. -
Disassociates one or more targets from an event window.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2DisassociateInstanceEventWindowRequest
See
AWSEC2DisassociateInstanceEventWindowResult
Declaration
Objective-C
- (void)disassociateInstanceEventWindow: (nonnull AWSEC2DisassociateInstanceEventWindowRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisassociateInstanceEventWindowResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disassociateInstanceEventWindow(_ request: AWSEC2DisassociateInstanceEventWindowRequest) async throws -> AWSEC2DisassociateInstanceEventWindowResultParameters
requestA container for the necessary parameters to execute the DisassociateInstanceEventWindow service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disassociates a subnet or gateway from a route table.
After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC’s main route table. For more information about route tables, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DisassociateRouteTableRequest
Declaration
Objective-C
- (id)disassociateRouteTable: (nonnull AWSEC2DisassociateRouteTableRequest *)request;Swift
func disassociateRouteTable(_ request: AWSEC2DisassociateRouteTableRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisassociateRouteTable service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Disassociates a subnet or gateway from a route table.
After you perform this action, the subnet no longer uses the routes in the route table. Instead, it uses the routes in the VPC’s main route table. For more information about route tables, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2DisassociateRouteTableRequest
Declaration
Objective-C
- (void)disassociateRouteTable: (nonnull AWSEC2DisassociateRouteTableRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func disassociateRouteTable(_ request: AWSEC2DisassociateRouteTableRequest) async throwsParameters
requestA container for the necessary parameters to execute the DisassociateRouteTable service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.
See
AWSEC2DisassociateSubnetCidrBlockRequest
See
AWSEC2DisassociateSubnetCidrBlockResult
Declaration
Objective-C
- (id)disassociateSubnetCidrBlock: (nonnull AWSEC2DisassociateSubnetCidrBlockRequest *)request;Swift
func disassociateSubnetCidrBlock(_ request: AWSEC2DisassociateSubnetCidrBlockRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisassociateSubnetCidrBlock service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisassociateSubnetCidrBlockResult. -
Disassociates a CIDR block from a subnet. Currently, you can disassociate an IPv6 CIDR block only. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.
See
AWSEC2DisassociateSubnetCidrBlockRequest
See
AWSEC2DisassociateSubnetCidrBlockResult
Declaration
Objective-C
- (void)disassociateSubnetCidrBlock: (nonnull AWSEC2DisassociateSubnetCidrBlockRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisassociateSubnetCidrBlockResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disassociateSubnetCidrBlock(_ request: AWSEC2DisassociateSubnetCidrBlockRequest) async throws -> AWSEC2DisassociateSubnetCidrBlockResultParameters
requestA container for the necessary parameters to execute the DisassociateSubnetCidrBlock service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disassociates the specified subnets from the transit gateway multicast domain.
See
AWSEC2DisassociateTransitGatewayMulticastDomainRequest
See
AWSEC2DisassociateTransitGatewayMulticastDomainResult
Declaration
Objective-C
- (id)disassociateTransitGatewayMulticastDomain: (nonnull AWSEC2DisassociateTransitGatewayMulticastDomainRequest *)request;Swift
func disassociateTransitGatewayMulticastDomain(_ request: AWSEC2DisassociateTransitGatewayMulticastDomainRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisassociateTransitGatewayMulticastDomain service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisassociateTransitGatewayMulticastDomainResult. -
Disassociates the specified subnets from the transit gateway multicast domain.
See
AWSEC2DisassociateTransitGatewayMulticastDomainRequest
See
AWSEC2DisassociateTransitGatewayMulticastDomainResult
Declaration
Objective-C
- (void) disassociateTransitGatewayMulticastDomain: (nonnull AWSEC2DisassociateTransitGatewayMulticastDomainRequest *) request completionHandler: (void (^_Nullable)( AWSEC2DisassociateTransitGatewayMulticastDomainResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disassociateTransitGatewayMulticastDomain(_ request: AWSEC2DisassociateTransitGatewayMulticastDomainRequest) async throws -> AWSEC2DisassociateTransitGatewayMulticastDomainResultParameters
requestA container for the necessary parameters to execute the DisassociateTransitGatewayMulticastDomain service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disassociates a resource attachment from a transit gateway route table.
See
AWSEC2DisassociateTransitGatewayRouteTableRequest
See
AWSEC2DisassociateTransitGatewayRouteTableResult
Declaration
Objective-C
- (id)disassociateTransitGatewayRouteTable: (nonnull AWSEC2DisassociateTransitGatewayRouteTableRequest *)request;Swift
func disassociateTransitGatewayRouteTable(_ request: AWSEC2DisassociateTransitGatewayRouteTableRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisassociateTransitGatewayRouteTable service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisassociateTransitGatewayRouteTableResult. -
Disassociates a resource attachment from a transit gateway route table.
See
AWSEC2DisassociateTransitGatewayRouteTableRequest
See
AWSEC2DisassociateTransitGatewayRouteTableResult
Declaration
Objective-C
- (void) disassociateTransitGatewayRouteTable: (nonnull AWSEC2DisassociateTransitGatewayRouteTableRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisassociateTransitGatewayRouteTableResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disassociateTransitGatewayRouteTable(_ request: AWSEC2DisassociateTransitGatewayRouteTableRequest) async throws -> AWSEC2DisassociateTransitGatewayRouteTableResultParameters
requestA container for the necessary parameters to execute the DisassociateTransitGatewayRouteTable service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
This API action is currently in limited preview only. If you are interested in using this feature, contact your account manager.
Removes an association between a branch network interface with a trunk network interface.
See
AWSEC2DisassociateTrunkInterfaceRequest
See
AWSEC2DisassociateTrunkInterfaceResult
Declaration
Objective-C
- (id)disassociateTrunkInterface: (nonnull AWSEC2DisassociateTrunkInterfaceRequest *)request;Swift
func disassociateTrunkInterface(_ request: AWSEC2DisassociateTrunkInterfaceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisassociateTrunkInterface service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisassociateTrunkInterfaceResult. -
This API action is currently in limited preview only. If you are interested in using this feature, contact your account manager.
Removes an association between a branch network interface with a trunk network interface.
See
AWSEC2DisassociateTrunkInterfaceRequest
See
AWSEC2DisassociateTrunkInterfaceResult
Declaration
Objective-C
- (void)disassociateTrunkInterface: (nonnull AWSEC2DisassociateTrunkInterfaceRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisassociateTrunkInterfaceResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disassociateTrunkInterface(_ request: AWSEC2DisassociateTrunkInterfaceRequest) async throws -> AWSEC2DisassociateTrunkInterfaceResultParameters
requestA container for the necessary parameters to execute the DisassociateTrunkInterface service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must specify its association ID. You can get the association ID by using DescribeVpcs. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.
You cannot disassociate the CIDR block with which you originally created the VPC (the primary CIDR block).
See
AWSEC2DisassociateVpcCidrBlockRequest
See
AWSEC2DisassociateVpcCidrBlockResult
Declaration
Objective-C
- (id)disassociateVpcCidrBlock: (nonnull AWSEC2DisassociateVpcCidrBlockRequest *)request;Swift
func disassociateVpcCidrBlock(_ request: AWSEC2DisassociateVpcCidrBlockRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the DisassociateVpcCidrBlock service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2DisassociateVpcCidrBlockResult. -
Disassociates a CIDR block from a VPC. To disassociate the CIDR block, you must specify its association ID. You can get the association ID by using DescribeVpcs. You must detach or delete all gateways and resources that are associated with the CIDR block before you can disassociate it.
You cannot disassociate the CIDR block with which you originally created the VPC (the primary CIDR block).
See
AWSEC2DisassociateVpcCidrBlockRequest
See
AWSEC2DisassociateVpcCidrBlockResult
Declaration
Objective-C
- (void)disassociateVpcCidrBlock: (nonnull AWSEC2DisassociateVpcCidrBlockRequest *)request completionHandler: (void (^_Nullable)( AWSEC2DisassociateVpcCidrBlockResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func disassociateVpcCidrBlock(_ request: AWSEC2DisassociateVpcCidrBlockRequest) async throws -> AWSEC2DisassociateVpcCidrBlockResultParameters
requestA container for the necessary parameters to execute the DisassociateVpcCidrBlock service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Enables EBS encryption by default for your account in the current Region.
After you enable encryption by default, the EBS volumes that you create are always encrypted, either using the default KMS key or the KMS key that you specified when you created each volume. For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
You can specify the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.
Enabling encryption by default has no effect on the encryption status of your existing volumes.
After you enable encryption by default, you can no longer launch instances using instance types that do not support encryption. For more information, see Supported instance types.
See
AWSEC2EnableEbsEncryptionByDefaultRequest
See
AWSEC2EnableEbsEncryptionByDefaultResult
Declaration
Objective-C
- (id)enableEbsEncryptionByDefault: (nonnull AWSEC2EnableEbsEncryptionByDefaultRequest *)request;Swift
func enableEbsEncryption(byDefault request: AWSEC2EnableEbsEncryptionByDefaultRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the EnableEbsEncryptionByDefault service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2EnableEbsEncryptionByDefaultResult. -
Enables EBS encryption by default for your account in the current Region.
After you enable encryption by default, the EBS volumes that you create are always encrypted, either using the default KMS key or the KMS key that you specified when you created each volume. For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
You can specify the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.
Enabling encryption by default has no effect on the encryption status of your existing volumes.
After you enable encryption by default, you can no longer launch instances using instance types that do not support encryption. For more information, see Supported instance types.
See
AWSEC2EnableEbsEncryptionByDefaultRequest
See
AWSEC2EnableEbsEncryptionByDefaultResult
Declaration
Objective-C
- (void)enableEbsEncryptionByDefault: (nonnull AWSEC2EnableEbsEncryptionByDefaultRequest *)request completionHandler: (void (^_Nullable)( AWSEC2EnableEbsEncryptionByDefaultResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func enableEbsEncryption(byDefault request: AWSEC2EnableEbsEncryptionByDefaultRequest) async throws -> AWSEC2EnableEbsEncryptionByDefaultResultParameters
requestA container for the necessary parameters to execute the EnableEbsEncryptionByDefault service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
When you enable faster launching for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster. To create the optimized Windows image, Amazon EC2 launches an instance and runs through Sysprep steps, rebooting as required. Then it creates a set of reserved snapshots that are used for subsequent launches. The reserved snapshots are automatically replenished as they are used, depending on your settings for launch frequency.
To change these settings, you must own the AMI.
See
AWSEC2EnableFastLaunchRequest
See
AWSEC2EnableFastLaunchResult
Declaration
Objective-C
- (id)enableFastLaunch:(nonnull AWSEC2EnableFastLaunchRequest *)request;Swift
func enableFastLaunch(_ request: AWSEC2EnableFastLaunchRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the EnableFastLaunch service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2EnableFastLaunchResult. -
When you enable faster launching for a Windows AMI, images are pre-provisioned, using snapshots to launch instances up to 65% faster. To create the optimized Windows image, Amazon EC2 launches an instance and runs through Sysprep steps, rebooting as required. Then it creates a set of reserved snapshots that are used for subsequent launches. The reserved snapshots are automatically replenished as they are used, depending on your settings for launch frequency.
To change these settings, you must own the AMI.
See
AWSEC2EnableFastLaunchRequest
See
AWSEC2EnableFastLaunchResult
Declaration
Objective-C
- (void)enableFastLaunch:(nonnull AWSEC2EnableFastLaunchRequest *)request completionHandler: (void (^_Nullable)(AWSEC2EnableFastLaunchResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func enableFastLaunch(_ request: AWSEC2EnableFastLaunchRequest) async throws -> AWSEC2EnableFastLaunchResultParameters
requestA container for the necessary parameters to execute the EnableFastLaunch service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.
You get the full benefit of fast snapshot restores after they enter the
enabledstate. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, use DisableFastSnapshotRestores.For more information, see Amazon EBS fast snapshot restore in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2EnableFastSnapshotRestoresRequest
See
AWSEC2EnableFastSnapshotRestoresResult
Declaration
Objective-C
- (id)enableFastSnapshotRestores: (nonnull AWSEC2EnableFastSnapshotRestoresRequest *)request;Swift
func enableFastSnapshotRestores(_ request: AWSEC2EnableFastSnapshotRestoresRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the EnableFastSnapshotRestores service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2EnableFastSnapshotRestoresResult. -
Enables fast snapshot restores for the specified snapshots in the specified Availability Zones.
You get the full benefit of fast snapshot restores after they enter the
enabledstate. To get the current state of fast snapshot restores, use DescribeFastSnapshotRestores. To disable fast snapshot restores, use DisableFastSnapshotRestores.For more information, see Amazon EBS fast snapshot restore in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2EnableFastSnapshotRestoresRequest
See
AWSEC2EnableFastSnapshotRestoresResult
Declaration
Objective-C
- (void)enableFastSnapshotRestores: (nonnull AWSEC2EnableFastSnapshotRestoresRequest *)request completionHandler: (void (^_Nullable)( AWSEC2EnableFastSnapshotRestoresResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func enableFastSnapshotRestores(_ request: AWSEC2EnableFastSnapshotRestoresRequest) async throws -> AWSEC2EnableFastSnapshotRestoresResultParameters
requestA container for the necessary parameters to execute the EnableFastSnapshotRestores service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Enables deprecation of the specified AMI at the specified date and time.
For more information, see Deprecate an AMI in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2EnableImageDeprecationRequest
See
AWSEC2EnableImageDeprecationResult
Declaration
Objective-C
- (id)enableImageDeprecation: (nonnull AWSEC2EnableImageDeprecationRequest *)request;Swift
func enableImageDeprecation(_ request: AWSEC2EnableImageDeprecationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the EnableImageDeprecation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2EnableImageDeprecationResult. -
Enables deprecation of the specified AMI at the specified date and time.
For more information, see Deprecate an AMI in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2EnableImageDeprecationRequest
See
AWSEC2EnableImageDeprecationResult
Declaration
Objective-C
- (void) enableImageDeprecation: (nonnull AWSEC2EnableImageDeprecationRequest *)request completionHandler: (void (^_Nullable)(AWSEC2EnableImageDeprecationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func enableImageDeprecation(_ request: AWSEC2EnableImageDeprecationRequest) async throws -> AWSEC2EnableImageDeprecationResultParameters
requestA container for the necessary parameters to execute the EnableImageDeprecation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Enable an Organizations member account as the IPAM admin account. You cannot select the Organizations management account as the IPAM admin account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.
See
AWSEC2EnableIpamOrganizationAdminAccountRequest
See
AWSEC2EnableIpamOrganizationAdminAccountResult
Declaration
Objective-C
- (id)enableIpamOrganizationAdminAccount: (nonnull AWSEC2EnableIpamOrganizationAdminAccountRequest *)request;Swift
func enableIpamOrganizationAdminAccount(_ request: AWSEC2EnableIpamOrganizationAdminAccountRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the EnableIpamOrganizationAdminAccount service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2EnableIpamOrganizationAdminAccountResult. -
Enable an Organizations member account as the IPAM admin account. You cannot select the Organizations management account as the IPAM admin account. For more information, see Enable integration with Organizations in the Amazon VPC IPAM User Guide.
See
AWSEC2EnableIpamOrganizationAdminAccountRequest
See
AWSEC2EnableIpamOrganizationAdminAccountResult
Declaration
Objective-C
- (void)enableIpamOrganizationAdminAccount: (nonnull AWSEC2EnableIpamOrganizationAdminAccountRequest *)request completionHandler: (void (^_Nullable)( AWSEC2EnableIpamOrganizationAdminAccountResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func enableIpamOrganizationAdminAccount(_ request: AWSEC2EnableIpamOrganizationAdminAccountRequest) async throws -> AWSEC2EnableIpamOrganizationAdminAccountResultParameters
requestA container for the necessary parameters to execute the EnableIpamOrganizationAdminAccount service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Enables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
See
AWSEC2EnableSerialConsoleAccessRequest
See
AWSEC2EnableSerialConsoleAccessResult
Declaration
Objective-C
- (id)enableSerialConsoleAccess: (nonnull AWSEC2EnableSerialConsoleAccessRequest *)request;Swift
func enableSerialConsoleAccess(_ request: AWSEC2EnableSerialConsoleAccessRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the EnableSerialConsoleAccess service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2EnableSerialConsoleAccessResult. -
Enables access to the EC2 serial console of all instances for your account. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
See
AWSEC2EnableSerialConsoleAccessRequest
See
AWSEC2EnableSerialConsoleAccessResult
Declaration
Objective-C
- (void)enableSerialConsoleAccess: (nonnull AWSEC2EnableSerialConsoleAccessRequest *)request completionHandler: (void (^_Nullable)( AWSEC2EnableSerialConsoleAccessResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func enableSerialConsoleAccess(_ request: AWSEC2EnableSerialConsoleAccessRequest) async throws -> AWSEC2EnableSerialConsoleAccessResultParameters
requestA container for the necessary parameters to execute the EnableSerialConsoleAccess service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Enables the specified attachment to propagate routes to the specified propagation route table.
See
AWSEC2EnableTransitGatewayRouteTablePropagationRequest
See
AWSEC2EnableTransitGatewayRouteTablePropagationResult
Declaration
Objective-C
- (id)enableTransitGatewayRouteTablePropagation: (nonnull AWSEC2EnableTransitGatewayRouteTablePropagationRequest *)request;Swift
func enableTransitGatewayRouteTablePropagation(_ request: AWSEC2EnableTransitGatewayRouteTablePropagationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the EnableTransitGatewayRouteTablePropagation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2EnableTransitGatewayRouteTablePropagationResult. -
Enables the specified attachment to propagate routes to the specified propagation route table.
See
AWSEC2EnableTransitGatewayRouteTablePropagationRequest
See
AWSEC2EnableTransitGatewayRouteTablePropagationResult
Declaration
Objective-C
- (void) enableTransitGatewayRouteTablePropagation: (nonnull AWSEC2EnableTransitGatewayRouteTablePropagationRequest *) request completionHandler: (void (^_Nullable)( AWSEC2EnableTransitGatewayRouteTablePropagationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func enableTransitGatewayRouteTablePropagation(_ request: AWSEC2EnableTransitGatewayRouteTablePropagationRequest) async throws -> AWSEC2EnableTransitGatewayRouteTablePropagationResultParameters
requestA container for the necessary parameters to execute the EnableTransitGatewayRouteTablePropagation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.
See
AWSEC2EnableVgwRoutePropagationRequest
Declaration
Objective-C
- (id)enableVgwRoutePropagation: (nonnull AWSEC2EnableVgwRoutePropagationRequest *)request;Swift
func enableVgwRoutePropagation(_ request: AWSEC2EnableVgwRoutePropagationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the EnableVgwRoutePropagation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Enables a virtual private gateway (VGW) to propagate routes to the specified route table of a VPC.
See
AWSEC2EnableVgwRoutePropagationRequest
Declaration
Objective-C
- (void)enableVgwRoutePropagation: (nonnull AWSEC2EnableVgwRoutePropagationRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func enableVgwRoutePropagation(_ request: AWSEC2EnableVgwRoutePropagationRequest) async throwsParameters
requestA container for the necessary parameters to execute the EnableVgwRoutePropagation service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.
See
AWSEC2EnableVolumeIORequest
Declaration
Objective-C
- (id)enableVolumeIO:(nonnull AWSEC2EnableVolumeIORequest *)request;Swift
func enableVolumeIO(_ request: AWSEC2EnableVolumeIORequest) -> Any!Parameters
requestA container for the necessary parameters to execute the EnableVolumeIO service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Enables I/O operations for a volume that had I/O operations disabled because the data on the volume was potentially inconsistent.
See
AWSEC2EnableVolumeIORequest
Declaration
Objective-C
- (void)enableVolumeIO:(nonnull AWSEC2EnableVolumeIORequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func enableVolumeIO(_ request: AWSEC2EnableVolumeIORequest) async throwsParameters
requestA container for the necessary parameters to execute the EnableVolumeIO service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the
10.0.0.0/8IP address range, excluding local routes for VPCs in the10.0.0.0/16and10.1.0.0/16IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.See
AWSEC2EnableVpcClassicLinkRequest
See
AWSEC2EnableVpcClassicLinkResult
Declaration
Objective-C
- (id)enableVpcClassicLink:(nonnull AWSEC2EnableVpcClassicLinkRequest *)request;Swift
func enableVpcClassicLink(_ request: AWSEC2EnableVpcClassicLinkRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the EnableVpcClassicLink service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2EnableVpcClassicLinkResult. -
Enables a VPC for ClassicLink. You can then link EC2-Classic instances to your ClassicLink-enabled VPC to allow communication over private IP addresses. You cannot enable your VPC for ClassicLink if any of your VPC route tables have existing routes for address ranges within the
10.0.0.0/8IP address range, excluding local routes for VPCs in the10.0.0.0/16and10.1.0.0/16IP address ranges. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.See
AWSEC2EnableVpcClassicLinkRequest
See
AWSEC2EnableVpcClassicLinkResult
Declaration
Objective-C
- (void)enableVpcClassicLink: (nonnull AWSEC2EnableVpcClassicLinkRequest *)request completionHandler: (void (^_Nullable)(AWSEC2EnableVpcClassicLinkResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func enableVpcClassicLink(_ request: AWSEC2EnableVpcClassicLinkRequest) async throws -> AWSEC2EnableVpcClassicLinkResultParameters
requestA container for the necessary parameters to execute the EnableVpcClassicLink service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it’s linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
You must specify a VPC ID in the request.
See
AWSEC2EnableVpcClassicLinkDnsSupportRequest
See
AWSEC2EnableVpcClassicLinkDnsSupportResult
Declaration
Objective-C
- (id)enableVpcClassicLinkDnsSupport: (nonnull AWSEC2EnableVpcClassicLinkDnsSupportRequest *)request;Swift
func enableVpcClassicLinkDnsSupport(_ request: AWSEC2EnableVpcClassicLinkDnsSupportRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the EnableVpcClassicLinkDnsSupport service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2EnableVpcClassicLinkDnsSupportResult. -
Enables a VPC to support DNS hostname resolution for ClassicLink. If enabled, the DNS hostname of a linked EC2-Classic instance resolves to its private IP address when addressed from an instance in the VPC to which it’s linked. Similarly, the DNS hostname of an instance in a VPC resolves to its private IP address when addressed from a linked EC2-Classic instance. For more information, see ClassicLink in the Amazon Elastic Compute Cloud User Guide.
You must specify a VPC ID in the request.
See
AWSEC2EnableVpcClassicLinkDnsSupportRequest
See
AWSEC2EnableVpcClassicLinkDnsSupportResult
Declaration
Objective-C
- (void) enableVpcClassicLinkDnsSupport: (nonnull AWSEC2EnableVpcClassicLinkDnsSupportRequest *)request completionHandler: (void (^_Nullable)( AWSEC2EnableVpcClassicLinkDnsSupportResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func enableVpcClassicLinkDnsSupport(_ request: AWSEC2EnableVpcClassicLinkDnsSupportRequest) async throws -> AWSEC2EnableVpcClassicLinkDnsSupportResultParameters
requestA container for the necessary parameters to execute the EnableVpcClassicLinkDnsSupport service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Downloads the client certificate revocation list for the specified Client VPN endpoint.
See
AWSEC2ExportClientVpnClientCertificateRevocationListRequest
See
AWSEC2ExportClientVpnClientCertificateRevocationListResult
Declaration
Objective-C
- (id)exportClientVpnClientCertificateRevocationList: (nonnull AWSEC2ExportClientVpnClientCertificateRevocationListRequest *) request;Swift
func exportClientVpnClientCertificateRevocationList(_ request: AWSEC2ExportClientVpnClientCertificateRevocationListRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ExportClientVpnClientCertificateRevocationList service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ExportClientVpnClientCertificateRevocationListResult. -
Downloads the client certificate revocation list for the specified Client VPN endpoint.
See
AWSEC2ExportClientVpnClientCertificateRevocationListRequest
See
AWSEC2ExportClientVpnClientCertificateRevocationListResult
Declaration
Objective-C
- (void) exportClientVpnClientCertificateRevocationList: (nonnull AWSEC2ExportClientVpnClientCertificateRevocationListRequest *) request completionHandler: (void (^_Nullable)( AWSEC2ExportClientVpnClientCertificateRevocationListResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func exportClientVpnClientCertificateRevocationList(_ request: AWSEC2ExportClientVpnClientCertificateRevocationListRequest) async throws -> AWSEC2ExportClientVpnClientCertificateRevocationListResultParameters
requestA container for the necessary parameters to execute the ExportClientVpnClientCertificateRevocationList service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. The Client VPN endpoint configuration file includes the Client VPN endpoint and certificate information clients need to establish a connection with the Client VPN endpoint.
See
AWSEC2ExportClientVpnClientConfigurationRequest
See
AWSEC2ExportClientVpnClientConfigurationResult
Declaration
Objective-C
- (id)exportClientVpnClientConfiguration: (nonnull AWSEC2ExportClientVpnClientConfigurationRequest *)request;Swift
func exportClientVpnClientConfiguration(_ request: AWSEC2ExportClientVpnClientConfigurationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ExportClientVpnClientConfiguration service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ExportClientVpnClientConfigurationResult. -
Downloads the contents of the Client VPN endpoint configuration file for the specified Client VPN endpoint. The Client VPN endpoint configuration file includes the Client VPN endpoint and certificate information clients need to establish a connection with the Client VPN endpoint.
See
AWSEC2ExportClientVpnClientConfigurationRequest
See
AWSEC2ExportClientVpnClientConfigurationResult
Declaration
Objective-C
- (void)exportClientVpnClientConfiguration: (nonnull AWSEC2ExportClientVpnClientConfigurationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ExportClientVpnClientConfigurationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func exportClientVpnClientConfiguration(_ request: AWSEC2ExportClientVpnClientConfigurationRequest) async throws -> AWSEC2ExportClientVpnClientConfigurationResultParameters
requestA container for the necessary parameters to execute the ExportClientVpnClientConfiguration service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM directly from an Amazon Machine Image (AMI) in the VM Import/Export User Guide.
See
AWSEC2ExportImageRequest
See
AWSEC2ExportImageResult
Declaration
Objective-C
- (id)exportImage:(nonnull AWSEC2ExportImageRequest *)request;Swift
func exportImage(_ request: AWSEC2ExportImageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ExportImage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ExportImageResult. -
Exports an Amazon Machine Image (AMI) to a VM file. For more information, see Exporting a VM directly from an Amazon Machine Image (AMI) in the VM Import/Export User Guide.
See
AWSEC2ExportImageRequest
See
AWSEC2ExportImageResult
Declaration
Objective-C
- (void)exportImage:(nonnull AWSEC2ExportImageRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ExportImageResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func exportImage(_ request: AWSEC2ExportImageRequest) async throws -> AWSEC2ExportImageResultParameters
requestA container for the necessary parameters to execute the ExportImage service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Exports routes from the specified transit gateway route table to the specified S3 bucket. By default, all routes are exported. Alternatively, you can filter by CIDR range.
The routes are saved to the specified bucket in a JSON file. For more information, see Export Route Tables to Amazon S3 in Transit Gateways.
See
AWSEC2ExportTransitGatewayRoutesRequest
See
AWSEC2ExportTransitGatewayRoutesResult
Declaration
Objective-C
- (id)exportTransitGatewayRoutes: (nonnull AWSEC2ExportTransitGatewayRoutesRequest *)request;Swift
func exportTransitGatewayRoutes(_ request: AWSEC2ExportTransitGatewayRoutesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ExportTransitGatewayRoutes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ExportTransitGatewayRoutesResult. -
Exports routes from the specified transit gateway route table to the specified S3 bucket. By default, all routes are exported. Alternatively, you can filter by CIDR range.
The routes are saved to the specified bucket in a JSON file. For more information, see Export Route Tables to Amazon S3 in Transit Gateways.
See
AWSEC2ExportTransitGatewayRoutesRequest
See
AWSEC2ExportTransitGatewayRoutesResult
Declaration
Objective-C
- (void)exportTransitGatewayRoutes: (nonnull AWSEC2ExportTransitGatewayRoutesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ExportTransitGatewayRoutesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func exportTransitGatewayRoutes(_ request: AWSEC2ExportTransitGatewayRoutesRequest) async throws -> AWSEC2ExportTransitGatewayRoutesResultParameters
requestA container for the necessary parameters to execute the ExportTransitGatewayRoutes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Returns the IAM roles that are associated with the specified ACM (ACM) certificate. It also returns the name of the Amazon S3 bucket and the Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored, and the ARN of the KMS key that’s used to encrypt the private key.
See
AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest
See
AWSEC2GetAssociatedEnclaveCertificateIamRolesResult
Declaration
Objective-C
- (id)getAssociatedEnclaveCertificateIamRoles: (nonnull AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest *)request;Swift
func getAssociatedEnclaveCertificateIamRoles(_ request: AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetAssociatedEnclaveCertificateIamRoles service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetAssociatedEnclaveCertificateIamRolesResult. -
Returns the IAM roles that are associated with the specified ACM (ACM) certificate. It also returns the name of the Amazon S3 bucket and the Amazon S3 object key where the certificate, certificate chain, and encrypted private key bundle are stored, and the ARN of the KMS key that’s used to encrypt the private key.
See
AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest
See
AWSEC2GetAssociatedEnclaveCertificateIamRolesResult
Declaration
Objective-C
- (void) getAssociatedEnclaveCertificateIamRoles: (nonnull AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetAssociatedEnclaveCertificateIamRolesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associatedEnclaveCertificateIamRoles(_ request: AWSEC2GetAssociatedEnclaveCertificateIamRolesRequest) async throws -> AWSEC2GetAssociatedEnclaveCertificateIamRolesResultParameters
requestA container for the necessary parameters to execute the GetAssociatedEnclaveCertificateIamRoles service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool.
See
AWSEC2GetAssociatedIpv6PoolCidrsRequest
See
AWSEC2GetAssociatedIpv6PoolCidrsResult
Declaration
Objective-C
- (id)getAssociatedIpv6PoolCidrs: (nonnull AWSEC2GetAssociatedIpv6PoolCidrsRequest *)request;Swift
func getAssociatedIpv6PoolCidrs(_ request: AWSEC2GetAssociatedIpv6PoolCidrsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetAssociatedIpv6PoolCidrs service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetAssociatedIpv6PoolCidrsResult. -
Gets information about the IPv6 CIDR block associations for a specified IPv6 address pool.
See
AWSEC2GetAssociatedIpv6PoolCidrsRequest
See
AWSEC2GetAssociatedIpv6PoolCidrsResult
Declaration
Objective-C
- (void)getAssociatedIpv6PoolCidrs: (nonnull AWSEC2GetAssociatedIpv6PoolCidrsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetAssociatedIpv6PoolCidrsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func associatedIpv6PoolCidrs(_ request: AWSEC2GetAssociatedIpv6PoolCidrsRequest) async throws -> AWSEC2GetAssociatedIpv6PoolCidrsResultParameters
requestA container for the necessary parameters to execute the GetAssociatedIpv6PoolCidrs service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each Amazon Web Services account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner’s usage.
See
AWSEC2GetCapacityReservationUsageRequest
See
AWSEC2GetCapacityReservationUsageResult
Declaration
Objective-C
- (id)getCapacityReservationUsage: (nonnull AWSEC2GetCapacityReservationUsageRequest *)request;Swift
func getCapacityReservationUsage(_ request: AWSEC2GetCapacityReservationUsageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetCapacityReservationUsage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetCapacityReservationUsageResult. -
Gets usage information about a Capacity Reservation. If the Capacity Reservation is shared, it shows usage information for the Capacity Reservation owner and each Amazon Web Services account that is currently using the shared capacity. If the Capacity Reservation is not shared, it shows only the Capacity Reservation owner’s usage.
See
AWSEC2GetCapacityReservationUsageRequest
See
AWSEC2GetCapacityReservationUsageResult
Declaration
Objective-C
- (void)getCapacityReservationUsage: (nonnull AWSEC2GetCapacityReservationUsageRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetCapacityReservationUsageResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func capacityReservationUsage(_ request: AWSEC2GetCapacityReservationUsageRequest) async throws -> AWSEC2GetCapacityReservationUsageResultParameters
requestA container for the necessary parameters to execute the GetCapacityReservationUsage service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the allocations from the specified customer-owned address pool.
See
AWSEC2GetCoipPoolUsageRequest
See
AWSEC2GetCoipPoolUsageResult
Declaration
Objective-C
- (id)getCoipPoolUsage:(nonnull AWSEC2GetCoipPoolUsageRequest *)request;Swift
func getCoipPoolUsage(_ request: AWSEC2GetCoipPoolUsageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetCoipPoolUsage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetCoipPoolUsageResult. -
Describes the allocations from the specified customer-owned address pool.
See
AWSEC2GetCoipPoolUsageRequest
See
AWSEC2GetCoipPoolUsageResult
Declaration
Objective-C
- (void)getCoipPoolUsage:(nonnull AWSEC2GetCoipPoolUsageRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetCoipPoolUsageResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func coipPoolUsage(_ request: AWSEC2GetCoipPoolUsageRequest) async throws -> AWSEC2GetCoipPoolUsageResultParameters
requestA container for the necessary parameters to execute the GetCoipPoolUsage service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.
By default, the console output returns buffered information that was posted shortly after an instance transition state (start, stop, reboot, or terminate). This information is available for at least one hour after the most recent post. Only the most recent 64 KB of console output is available.
You can optionally retrieve the latest serial console output at any time during the instance lifecycle. This option is supported on instance types that use the Nitro hypervisor.
For more information, see Instance console output in the Amazon EC2 User Guide.
See
AWSEC2GetConsoleOutputRequest
See
AWSEC2GetConsoleOutputResult
Declaration
Objective-C
- (id)getConsoleOutput:(nonnull AWSEC2GetConsoleOutputRequest *)request;Swift
func getConsoleOutput(_ request: AWSEC2GetConsoleOutputRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetConsoleOutput service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetConsoleOutputResult. -
Gets the console output for the specified instance. For Linux instances, the instance console output displays the exact console output that would normally be displayed on a physical monitor attached to a computer. For Windows instances, the instance console output includes the last three system event log errors.
By default, the console output returns buffered information that was posted shortly after an instance transition state (start, stop, reboot, or terminate). This information is available for at least one hour after the most recent post. Only the most recent 64 KB of console output is available.
You can optionally retrieve the latest serial console output at any time during the instance lifecycle. This option is supported on instance types that use the Nitro hypervisor.
For more information, see Instance console output in the Amazon EC2 User Guide.
See
AWSEC2GetConsoleOutputRequest
See
AWSEC2GetConsoleOutputResult
Declaration
Objective-C
- (void)getConsoleOutput:(nonnull AWSEC2GetConsoleOutputRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetConsoleOutputResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func consoleOutput(_ request: AWSEC2GetConsoleOutputRequest) async throws -> AWSEC2GetConsoleOutputResultParameters
requestA container for the necessary parameters to execute the GetConsoleOutput service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.
The returned content is Base64-encoded.
See
AWSEC2GetConsoleScreenshotRequest
See
AWSEC2GetConsoleScreenshotResult
Declaration
Objective-C
- (id)getConsoleScreenshot:(nonnull AWSEC2GetConsoleScreenshotRequest *)request;Swift
func getConsoleScreenshot(_ request: AWSEC2GetConsoleScreenshotRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetConsoleScreenshot service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetConsoleScreenshotResult. -
Retrieve a JPG-format screenshot of a running instance to help with troubleshooting.
The returned content is Base64-encoded.
See
AWSEC2GetConsoleScreenshotRequest
See
AWSEC2GetConsoleScreenshotResult
Declaration
Objective-C
- (void)getConsoleScreenshot: (nonnull AWSEC2GetConsoleScreenshotRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetConsoleScreenshotResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func consoleScreenshot(_ request: AWSEC2GetConsoleScreenshotRequest) async throws -> AWSEC2GetConsoleScreenshotResultParameters
requestA container for the necessary parameters to execute the GetConsoleScreenshot service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the default credit option for CPU usage of a burstable performance instance family.
For more information, see Burstable performance instances in the Amazon EC2 User Guide.
See
AWSEC2GetDefaultCreditSpecificationRequest
See
AWSEC2GetDefaultCreditSpecificationResult
Declaration
Objective-C
- (id)getDefaultCreditSpecification: (nonnull AWSEC2GetDefaultCreditSpecificationRequest *)request;Swift
func getDefaultCreditSpecification(_ request: AWSEC2GetDefaultCreditSpecificationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetDefaultCreditSpecification service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetDefaultCreditSpecificationResult. -
Describes the default credit option for CPU usage of a burstable performance instance family.
For more information, see Burstable performance instances in the Amazon EC2 User Guide.
See
AWSEC2GetDefaultCreditSpecificationRequest
See
AWSEC2GetDefaultCreditSpecificationResult
Declaration
Objective-C
- (void) getDefaultCreditSpecification: (nonnull AWSEC2GetDefaultCreditSpecificationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetDefaultCreditSpecificationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func defaultCreditSpecification(_ request: AWSEC2GetDefaultCreditSpecificationRequest) async throws -> AWSEC2GetDefaultCreditSpecificationResultParameters
requestA container for the necessary parameters to execute the GetDefaultCreditSpecification service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes the default KMS key for EBS encryption by default for your account in this Region. You can change the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.
For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2GetEbsDefaultKmsKeyIdRequest
See
AWSEC2GetEbsDefaultKmsKeyIdResult
Declaration
Objective-C
- (id)getEbsDefaultKmsKeyId: (nonnull AWSEC2GetEbsDefaultKmsKeyIdRequest *)request;Swift
func getEbsDefaultKmsKeyId(_ request: AWSEC2GetEbsDefaultKmsKeyIdRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetEbsDefaultKmsKeyId service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetEbsDefaultKmsKeyIdResult. -
Describes the default KMS key for EBS encryption by default for your account in this Region. You can change the default KMS key for encryption by default using ModifyEbsDefaultKmsKeyId or ResetEbsDefaultKmsKeyId.
For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2GetEbsDefaultKmsKeyIdRequest
See
AWSEC2GetEbsDefaultKmsKeyIdResult
Declaration
Objective-C
- (void)getEbsDefaultKmsKeyId: (nonnull AWSEC2GetEbsDefaultKmsKeyIdRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetEbsDefaultKmsKeyIdResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func ebsDefaultKmsKeyId(_ request: AWSEC2GetEbsDefaultKmsKeyIdRequest) async throws -> AWSEC2GetEbsDefaultKmsKeyIdResultParameters
requestA container for the necessary parameters to execute the GetEbsDefaultKmsKeyId service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Describes whether EBS encryption by default is enabled for your account in the current Region.
For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2GetEbsEncryptionByDefaultRequest
See
AWSEC2GetEbsEncryptionByDefaultResult
Declaration
Objective-C
- (id)getEbsEncryptionByDefault: (nonnull AWSEC2GetEbsEncryptionByDefaultRequest *)request;Swift
func getEbsEncryption(byDefault request: AWSEC2GetEbsEncryptionByDefaultRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetEbsEncryptionByDefault service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetEbsEncryptionByDefaultResult. -
Describes whether EBS encryption by default is enabled for your account in the current Region.
For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2GetEbsEncryptionByDefaultRequest
See
AWSEC2GetEbsEncryptionByDefaultResult
Declaration
Objective-C
- (void)getEbsEncryptionByDefault: (nonnull AWSEC2GetEbsEncryptionByDefaultRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetEbsEncryptionByDefaultResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func ebsEncryption(byDefault request: AWSEC2GetEbsEncryptionByDefaultRequest) async throws -> AWSEC2GetEbsEncryptionByDefaultResultParameters
requestA container for the necessary parameters to execute the GetEbsEncryptionByDefault service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Generates a CloudFormation template that streamlines and automates the integration of VPC flow logs with Amazon Athena. This make it easier for you to query and gain insights from VPC flow logs data. Based on the information that you provide, we configure resources in the template to do the following:
Create a table in Athena that maps fields to a custom log format
Create a Lambda function that updates the table with new partitions on a daily, weekly, or monthly basis
Create a table partitioned between two timestamps in the past
Create a set of named queries in Athena that you can use to get started quickly
See
AWSEC2GetFlowLogsIntegrationTemplateRequest
See
AWSEC2GetFlowLogsIntegrationTemplateResult
Declaration
Objective-C
- (id)getFlowLogsIntegrationTemplate: (nonnull AWSEC2GetFlowLogsIntegrationTemplateRequest *)request;Swift
func getFlowLogsIntegrationTemplate(_ request: AWSEC2GetFlowLogsIntegrationTemplateRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetFlowLogsIntegrationTemplate service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetFlowLogsIntegrationTemplateResult. -
Generates a CloudFormation template that streamlines and automates the integration of VPC flow logs with Amazon Athena. This make it easier for you to query and gain insights from VPC flow logs data. Based on the information that you provide, we configure resources in the template to do the following:
Create a table in Athena that maps fields to a custom log format
Create a Lambda function that updates the table with new partitions on a daily, weekly, or monthly basis
Create a table partitioned between two timestamps in the past
Create a set of named queries in Athena that you can use to get started quickly
See
AWSEC2GetFlowLogsIntegrationTemplateRequest
See
AWSEC2GetFlowLogsIntegrationTemplateResult
Declaration
Objective-C
- (void) getFlowLogsIntegrationTemplate: (nonnull AWSEC2GetFlowLogsIntegrationTemplateRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetFlowLogsIntegrationTemplateResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func flowLogsIntegrationTemplate(_ request: AWSEC2GetFlowLogsIntegrationTemplateRequest) async throws -> AWSEC2GetFlowLogsIntegrationTemplateResultParameters
requestA container for the necessary parameters to execute the GetFlowLogsIntegrationTemplate service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Lists the resource groups to which a Capacity Reservation has been added.
See
AWSEC2GetGroupsForCapacityReservationRequest
See
AWSEC2GetGroupsForCapacityReservationResult
Declaration
Objective-C
- (id)getGroupsForCapacityReservation: (nonnull AWSEC2GetGroupsForCapacityReservationRequest *)request;Swift
func getGroupsForCapacityReservation(_ request: AWSEC2GetGroupsForCapacityReservationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetGroupsForCapacityReservation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetGroupsForCapacityReservationResult. -
Lists the resource groups to which a Capacity Reservation has been added.
See
AWSEC2GetGroupsForCapacityReservationRequest
See
AWSEC2GetGroupsForCapacityReservationResult
Declaration
Objective-C
- (void)getGroupsForCapacityReservation: (nonnull AWSEC2GetGroupsForCapacityReservationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetGroupsForCapacityReservationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func groups(forCapacityReservation request: AWSEC2GetGroupsForCapacityReservationRequest) async throws -> AWSEC2GetGroupsForCapacityReservationResultParameters
requestA container for the necessary parameters to execute the GetGroupsForCapacityReservation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.
This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.
See
AWSEC2GetHostReservationPurchasePreviewRequest
See
AWSEC2GetHostReservationPurchasePreviewResult
Declaration
Objective-C
- (id)getHostReservationPurchasePreview: (nonnull AWSEC2GetHostReservationPurchasePreviewRequest *)request;Swift
func getHostReservationPurchasePreview(_ request: AWSEC2GetHostReservationPurchasePreviewRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetHostReservationPurchasePreview service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetHostReservationPurchasePreviewResult. -
Preview a reservation purchase with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation.
This is a preview of the PurchaseHostReservation action and does not result in the offering being purchased.
See
AWSEC2GetHostReservationPurchasePreviewRequest
See
AWSEC2GetHostReservationPurchasePreviewResult
Declaration
Objective-C
- (void)getHostReservationPurchasePreview: (nonnull AWSEC2GetHostReservationPurchasePreviewRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetHostReservationPurchasePreviewResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func hostReservationPurchasePreview(_ request: AWSEC2GetHostReservationPurchasePreviewRequest) async throws -> AWSEC2GetHostReservationPurchasePreviewResultParameters
requestA container for the necessary parameters to execute the GetHostReservationPurchasePreview service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Returns a list of instance types with the specified instance attributes. You can use the response to preview the instance types without launching instances. Note that the response does not consider capacity.
When you specify multiple parameters, you get instance types that satisfy all of the specified parameters. If you specify multiple values for a parameter, you get instance types that satisfy any of the specified values.
For more information, see Preview instance types with specified attributes, Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide, and Creating an Auto Scaling group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide.
See
AWSEC2GetInstanceTypesFromInstanceRequirementsRequest
See
AWSEC2GetInstanceTypesFromInstanceRequirementsResult
Declaration
Objective-C
- (id)getInstanceTypesFromInstanceRequirements: (nonnull AWSEC2GetInstanceTypesFromInstanceRequirementsRequest *)request;Swift
func getInstanceTypes(fromInstanceRequirements request: AWSEC2GetInstanceTypesFromInstanceRequirementsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetInstanceTypesFromInstanceRequirements service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetInstanceTypesFromInstanceRequirementsResult. -
Returns a list of instance types with the specified instance attributes. You can use the response to preview the instance types without launching instances. Note that the response does not consider capacity.
When you specify multiple parameters, you get instance types that satisfy all of the specified parameters. If you specify multiple values for a parameter, you get instance types that satisfy any of the specified values.
For more information, see Preview instance types with specified attributes, Attribute-based instance type selection for EC2 Fleet, Attribute-based instance type selection for Spot Fleet, and Spot placement score in the Amazon EC2 User Guide, and Creating an Auto Scaling group using attribute-based instance type selection in the Amazon EC2 Auto Scaling User Guide.
See
AWSEC2GetInstanceTypesFromInstanceRequirementsRequest
See
AWSEC2GetInstanceTypesFromInstanceRequirementsResult
Declaration
Objective-C
- (void) getInstanceTypesFromInstanceRequirements: (nonnull AWSEC2GetInstanceTypesFromInstanceRequirementsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetInstanceTypesFromInstanceRequirementsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func instanceTypes(fromInstanceRequirements request: AWSEC2GetInstanceTypesFromInstanceRequirementsRequest) async throws -> AWSEC2GetInstanceTypesFromInstanceRequirementsResultParameters
requestA container for the necessary parameters to execute the GetInstanceTypesFromInstanceRequirements service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
A binary representation of the UEFI variable store. Only non-volatile variables are stored. This is a base64 encoded and zlib compressed binary value that must be properly encoded.
When you use register-image to create an AMI, you can create an exact copy of your variable store by passing the UEFI data in the
UefiDataparameter. You can modify the UEFI data by using the python-uefivars tool on GitHub. You can use the tool to convert the UEFI data into a human-readable format (JSON), which you can inspect and modify, and then convert back into the binary format to use with register-image.For more information, see UEFI Secure Boot in the Amazon EC2 User Guide.
See
AWSEC2GetInstanceUefiDataRequest
See
AWSEC2GetInstanceUefiDataResult
Declaration
Objective-C
- (id)getInstanceUefiData:(nonnull AWSEC2GetInstanceUefiDataRequest *)request;Swift
func getInstanceUefiData(_ request: AWSEC2GetInstanceUefiDataRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetInstanceUefiData service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetInstanceUefiDataResult. -
A binary representation of the UEFI variable store. Only non-volatile variables are stored. This is a base64 encoded and zlib compressed binary value that must be properly encoded.
When you use register-image to create an AMI, you can create an exact copy of your variable store by passing the UEFI data in the
UefiDataparameter. You can modify the UEFI data by using the python-uefivars tool on GitHub. You can use the tool to convert the UEFI data into a human-readable format (JSON), which you can inspect and modify, and then convert back into the binary format to use with register-image.For more information, see UEFI Secure Boot in the Amazon EC2 User Guide.
See
AWSEC2GetInstanceUefiDataRequest
See
AWSEC2GetInstanceUefiDataResult
Declaration
Objective-C
- (void)getInstanceUefiData:(nonnull AWSEC2GetInstanceUefiDataRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetInstanceUefiDataResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func instanceUefiData(_ request: AWSEC2GetInstanceUefiDataRequest) async throws -> AWSEC2GetInstanceUefiDataResultParameters
requestA container for the necessary parameters to execute the GetInstanceUefiData service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Retrieve historical information about a CIDR within an IPAM scope. For more information, see View the history of IP addresses in the Amazon VPC IPAM User Guide.
See
AWSEC2GetIpamAddressHistoryRequest
See
AWSEC2GetIpamAddressHistoryResult
Declaration
Objective-C
- (id)getIpamAddressHistory: (nonnull AWSEC2GetIpamAddressHistoryRequest *)request;Swift
func getIpamAddressHistory(_ request: AWSEC2GetIpamAddressHistoryRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetIpamAddressHistory service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetIpamAddressHistoryResult. -
Retrieve historical information about a CIDR within an IPAM scope. For more information, see View the history of IP addresses in the Amazon VPC IPAM User Guide.
See
AWSEC2GetIpamAddressHistoryRequest
See
AWSEC2GetIpamAddressHistoryResult
Declaration
Objective-C
- (void)getIpamAddressHistory: (nonnull AWSEC2GetIpamAddressHistoryRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetIpamAddressHistoryResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func ipamAddressHistory(_ request: AWSEC2GetIpamAddressHistoryRequest) async throws -> AWSEC2GetIpamAddressHistoryResultParameters
requestA container for the necessary parameters to execute the GetIpamAddressHistory service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Get a list of all the CIDR allocations in an IPAM pool.
See
AWSEC2GetIpamPoolAllocationsRequest
See
AWSEC2GetIpamPoolAllocationsResult
Declaration
Objective-C
- (id)getIpamPoolAllocations: (nonnull AWSEC2GetIpamPoolAllocationsRequest *)request;Swift
func getIpamPoolAllocations(_ request: AWSEC2GetIpamPoolAllocationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetIpamPoolAllocations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetIpamPoolAllocationsResult. -
Get a list of all the CIDR allocations in an IPAM pool.
See
AWSEC2GetIpamPoolAllocationsRequest
See
AWSEC2GetIpamPoolAllocationsResult
Declaration
Objective-C
- (void) getIpamPoolAllocations: (nonnull AWSEC2GetIpamPoolAllocationsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetIpamPoolAllocationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func ipamPoolAllocations(_ request: AWSEC2GetIpamPoolAllocationsRequest) async throws -> AWSEC2GetIpamPoolAllocationsResultParameters
requestA container for the necessary parameters to execute the GetIpamPoolAllocations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Get the CIDRs provisioned to an IPAM pool.
See
AWSEC2GetIpamPoolCidrsRequest
See
AWSEC2GetIpamPoolCidrsResult
Declaration
Objective-C
- (id)getIpamPoolCidrs:(nonnull AWSEC2GetIpamPoolCidrsRequest *)request;Swift
func getIpamPoolCidrs(_ request: AWSEC2GetIpamPoolCidrsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetIpamPoolCidrs service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetIpamPoolCidrsResult. -
Get the CIDRs provisioned to an IPAM pool.
See
AWSEC2GetIpamPoolCidrsRequest
See
AWSEC2GetIpamPoolCidrsResult
Declaration
Objective-C
- (void)getIpamPoolCidrs:(nonnull AWSEC2GetIpamPoolCidrsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetIpamPoolCidrsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func ipamPoolCidrs(_ request: AWSEC2GetIpamPoolCidrsRequest) async throws -> AWSEC2GetIpamPoolCidrsResultParameters
requestA container for the necessary parameters to execute the GetIpamPoolCidrs service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Get information about the resources in a scope.
See
AWSEC2GetIpamResourceCidrsRequest
See
AWSEC2GetIpamResourceCidrsResult
Declaration
Objective-C
- (id)getIpamResourceCidrs:(nonnull AWSEC2GetIpamResourceCidrsRequest *)request;Swift
func getIpamResourceCidrs(_ request: AWSEC2GetIpamResourceCidrsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetIpamResourceCidrs service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetIpamResourceCidrsResult. -
Get information about the resources in a scope.
See
AWSEC2GetIpamResourceCidrsRequest
See
AWSEC2GetIpamResourceCidrsResult
Declaration
Objective-C
- (void)getIpamResourceCidrs: (nonnull AWSEC2GetIpamResourceCidrsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetIpamResourceCidrsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func ipamResourceCidrs(_ request: AWSEC2GetIpamResourceCidrsRequest) async throws -> AWSEC2GetIpamResourceCidrsResultParameters
requestA container for the necessary parameters to execute the GetIpamResourceCidrs service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Retrieves the configuration data of the specified instance. You can use this data to create a launch template.
This action calls on other describe actions to get instance information. Depending on your instance configuration, you may need to allow the following actions in your IAM policy: DescribeSpotInstanceRequests, DescribeInstanceCreditSpecifications, DescribeVolumes, DescribeInstanceAttribute, and DescribeElasticGpus. Or, you can allow
describe*depending on your instance requirements.See
AWSEC2GetLaunchTemplateDataRequest
See
AWSEC2GetLaunchTemplateDataResult
Declaration
Objective-C
- (id)getLaunchTemplateData: (nonnull AWSEC2GetLaunchTemplateDataRequest *)request;Swift
func getLaunchTemplateData(_ request: AWSEC2GetLaunchTemplateDataRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetLaunchTemplateData service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetLaunchTemplateDataResult. -
Retrieves the configuration data of the specified instance. You can use this data to create a launch template.
This action calls on other describe actions to get instance information. Depending on your instance configuration, you may need to allow the following actions in your IAM policy: DescribeSpotInstanceRequests, DescribeInstanceCreditSpecifications, DescribeVolumes, DescribeInstanceAttribute, and DescribeElasticGpus. Or, you can allow
describe*depending on your instance requirements.See
AWSEC2GetLaunchTemplateDataRequest
See
AWSEC2GetLaunchTemplateDataResult
Declaration
Objective-C
- (void)getLaunchTemplateData: (nonnull AWSEC2GetLaunchTemplateDataRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetLaunchTemplateDataResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func launchTemplateData(_ request: AWSEC2GetLaunchTemplateDataRequest) async throws -> AWSEC2GetLaunchTemplateDataResultParameters
requestA container for the necessary parameters to execute the GetLaunchTemplateData service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets information about the resources that are associated with the specified managed prefix list.
See
AWSEC2GetManagedPrefixListAssociationsRequest
See
AWSEC2GetManagedPrefixListAssociationsResult
Declaration
Objective-C
- (id)getManagedPrefixListAssociations: (nonnull AWSEC2GetManagedPrefixListAssociationsRequest *)request;Swift
func getManagedPrefixListAssociations(_ request: AWSEC2GetManagedPrefixListAssociationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetManagedPrefixListAssociations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetManagedPrefixListAssociationsResult. -
Gets information about the resources that are associated with the specified managed prefix list.
See
AWSEC2GetManagedPrefixListAssociationsRequest
See
AWSEC2GetManagedPrefixListAssociationsResult
Declaration
Objective-C
- (void)getManagedPrefixListAssociations: (nonnull AWSEC2GetManagedPrefixListAssociationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetManagedPrefixListAssociationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func managedPrefixListAssociations(_ request: AWSEC2GetManagedPrefixListAssociationsRequest) async throws -> AWSEC2GetManagedPrefixListAssociationsResultParameters
requestA container for the necessary parameters to execute the GetManagedPrefixListAssociations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets information about the entries for a specified managed prefix list.
See
AWSEC2GetManagedPrefixListEntriesRequest
See
AWSEC2GetManagedPrefixListEntriesResult
Declaration
Objective-C
- (id)getManagedPrefixListEntries: (nonnull AWSEC2GetManagedPrefixListEntriesRequest *)request;Swift
func getManagedPrefixListEntries(_ request: AWSEC2GetManagedPrefixListEntriesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetManagedPrefixListEntries service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetManagedPrefixListEntriesResult. -
Gets information about the entries for a specified managed prefix list.
See
AWSEC2GetManagedPrefixListEntriesRequest
See
AWSEC2GetManagedPrefixListEntriesResult
Declaration
Objective-C
- (void)getManagedPrefixListEntries: (nonnull AWSEC2GetManagedPrefixListEntriesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetManagedPrefixListEntriesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func managedPrefixListEntries(_ request: AWSEC2GetManagedPrefixListEntriesRequest) async throws -> AWSEC2GetManagedPrefixListEntriesResultParameters
requestA container for the necessary parameters to execute the GetManagedPrefixListEntries service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets the findings for the specified Network Access Scope analysis.
See
AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest
See
AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsResult
Declaration
Objective-C
- (id)getNetworkInsightsAccessScopeAnalysisFindings: (nonnull AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest *) request;Swift
func getNetworkInsightsAccessScopeAnalysisFindings(_ request: AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetNetworkInsightsAccessScopeAnalysisFindings service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsResult. -
Gets the findings for the specified Network Access Scope analysis.
See
AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest
See
AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsResult
Declaration
Objective-C
- (void) getNetworkInsightsAccessScopeAnalysisFindings: (nonnull AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest *) request completionHandler: (void (^_Nullable)( AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func networkInsightsAccessScopeAnalysisFindings(_ request: AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsRequest) async throws -> AWSEC2GetNetworkInsightsAccessScopeAnalysisFindingsResultParameters
requestA container for the necessary parameters to execute the GetNetworkInsightsAccessScopeAnalysisFindings service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets the content for the specified Network Access Scope.
See
AWSEC2GetNetworkInsightsAccessScopeContentRequest
See
AWSEC2GetNetworkInsightsAccessScopeContentResult
Declaration
Objective-C
- (id)getNetworkInsightsAccessScopeContent: (nonnull AWSEC2GetNetworkInsightsAccessScopeContentRequest *)request;Swift
func getNetworkInsightsAccessScopeContent(_ request: AWSEC2GetNetworkInsightsAccessScopeContentRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetNetworkInsightsAccessScopeContent service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetNetworkInsightsAccessScopeContentResult. -
Gets the content for the specified Network Access Scope.
See
AWSEC2GetNetworkInsightsAccessScopeContentRequest
See
AWSEC2GetNetworkInsightsAccessScopeContentResult
Declaration
Objective-C
- (void) getNetworkInsightsAccessScopeContent: (nonnull AWSEC2GetNetworkInsightsAccessScopeContentRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetNetworkInsightsAccessScopeContentResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func networkInsightsAccessScopeContent(_ request: AWSEC2GetNetworkInsightsAccessScopeContentRequest) async throws -> AWSEC2GetNetworkInsightsAccessScopeContentResultParameters
requestA container for the necessary parameters to execute the GetNetworkInsightsAccessScopeContent service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Retrieves the encrypted administrator password for a running Windows instance.
The Windows password is generated at boot by the
EC2Configservice orEC2Launchscripts (Windows Server 2016 and later). This usually only happens the first time an instance is launched. For more information, see EC2Config and EC2Launch in the Amazon EC2 User Guide.For the
EC2Configservice, the password is not generated for rebundled AMIs unlessEc2SetPasswordis enabled before bundling.The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.
When you launch an instance, password generation and encryption may take a few minutes. If you try to retrieve the password before it’s available, the output returns an empty string. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.
See
AWSEC2GetPasswordDataRequest
See
AWSEC2GetPasswordDataResult
Declaration
Objective-C
- (id)getPasswordData:(nonnull AWSEC2GetPasswordDataRequest *)request;Swift
func getPasswordData(_ request: AWSEC2GetPasswordDataRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetPasswordData service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetPasswordDataResult. -
Retrieves the encrypted administrator password for a running Windows instance.
The Windows password is generated at boot by the
EC2Configservice orEC2Launchscripts (Windows Server 2016 and later). This usually only happens the first time an instance is launched. For more information, see EC2Config and EC2Launch in the Amazon EC2 User Guide.For the
EC2Configservice, the password is not generated for rebundled AMIs unlessEc2SetPasswordis enabled before bundling.The password is encrypted using the key pair that you specified when you launched the instance. You must provide the corresponding key pair file.
When you launch an instance, password generation and encryption may take a few minutes. If you try to retrieve the password before it’s available, the output returns an empty string. We recommend that you wait up to 15 minutes after launching an instance before trying to retrieve the generated password.
See
AWSEC2GetPasswordDataRequest
See
AWSEC2GetPasswordDataResult
Declaration
Objective-C
- (void)getPasswordData:(nonnull AWSEC2GetPasswordDataRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetPasswordDataResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func passwordData(_ request: AWSEC2GetPasswordDataRequest) async throws -> AWSEC2GetPasswordDataResultParameters
requestA container for the necessary parameters to execute the GetPasswordData service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange.
See
AWSEC2GetReservedInstancesExchangeQuoteRequest
See
AWSEC2GetReservedInstancesExchangeQuoteResult
Declaration
Objective-C
- (id)getReservedInstancesExchangeQuote: (nonnull AWSEC2GetReservedInstancesExchangeQuoteRequest *)request;Swift
func getReservedInstancesExchangeQuote(_ request: AWSEC2GetReservedInstancesExchangeQuoteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetReservedInstancesExchangeQuote service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetReservedInstancesExchangeQuoteResult. -
Returns a quote and exchange information for exchanging one or more specified Convertible Reserved Instances for a new Convertible Reserved Instance. If the exchange cannot be performed, the reason is returned in the response. Use AcceptReservedInstancesExchangeQuote to perform the exchange.
See
AWSEC2GetReservedInstancesExchangeQuoteRequest
See
AWSEC2GetReservedInstancesExchangeQuoteResult
Declaration
Objective-C
- (void)getReservedInstancesExchangeQuote: (nonnull AWSEC2GetReservedInstancesExchangeQuoteRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetReservedInstancesExchangeQuoteResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func reservedInstancesExchangeQuote(_ request: AWSEC2GetReservedInstancesExchangeQuoteRequest) async throws -> AWSEC2GetReservedInstancesExchangeQuoteResultParameters
requestA container for the necessary parameters to execute the GetReservedInstancesExchangeQuote service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Retrieves the access status of your account to the EC2 serial console of all instances. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
See
AWSEC2GetSerialConsoleAccessStatusRequest
See
AWSEC2GetSerialConsoleAccessStatusResult
Declaration
Objective-C
- (id)getSerialConsoleAccessStatus: (nonnull AWSEC2GetSerialConsoleAccessStatusRequest *)request;Swift
func getSerialConsoleAccessStatus(_ request: AWSEC2GetSerialConsoleAccessStatusRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetSerialConsoleAccessStatus service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetSerialConsoleAccessStatusResult. -
Retrieves the access status of your account to the EC2 serial console of all instances. By default, access to the EC2 serial console is disabled for your account. For more information, see Manage account access to the EC2 serial console in the Amazon EC2 User Guide.
See
AWSEC2GetSerialConsoleAccessStatusRequest
See
AWSEC2GetSerialConsoleAccessStatusResult
Declaration
Objective-C
- (void)getSerialConsoleAccessStatus: (nonnull AWSEC2GetSerialConsoleAccessStatusRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetSerialConsoleAccessStatusResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func serialConsoleAccessStatus(_ request: AWSEC2GetSerialConsoleAccessStatusRequest) async throws -> AWSEC2GetSerialConsoleAccessStatusResultParameters
requestA container for the necessary parameters to execute the GetSerialConsoleAccessStatus service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements.
You can specify your compute requirements either by using
InstanceRequirementsWithMetadataand letting Amazon EC2 choose the optimal instance types to fulfill your Spot request, or you can specify the instance types by usingInstanceTypes.For more information, see Spot placement score in the Amazon EC2 User Guide.
See
AWSEC2GetSpotPlacementScoresRequest
See
AWSEC2GetSpotPlacementScoresResult
Declaration
Objective-C
- (id)getSpotPlacementScores: (nonnull AWSEC2GetSpotPlacementScoresRequest *)request;Swift
func getSpotPlacementScores(_ request: AWSEC2GetSpotPlacementScoresRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetSpotPlacementScores service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetSpotPlacementScoresResult. -
Calculates the Spot placement score for a Region or Availability Zone based on the specified target capacity and compute requirements.
You can specify your compute requirements either by using
InstanceRequirementsWithMetadataand letting Amazon EC2 choose the optimal instance types to fulfill your Spot request, or you can specify the instance types by usingInstanceTypes.For more information, see Spot placement score in the Amazon EC2 User Guide.
See
AWSEC2GetSpotPlacementScoresRequest
See
AWSEC2GetSpotPlacementScoresResult
Declaration
Objective-C
- (void) getSpotPlacementScores: (nonnull AWSEC2GetSpotPlacementScoresRequest *)request completionHandler: (void (^_Nullable)(AWSEC2GetSpotPlacementScoresResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func spotPlacementScores(_ request: AWSEC2GetSpotPlacementScoresRequest) async throws -> AWSEC2GetSpotPlacementScoresResultParameters
requestA container for the necessary parameters to execute the GetSpotPlacementScores service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets information about the subnet CIDR reservations.
See
AWSEC2GetSubnetCidrReservationsRequest
See
AWSEC2GetSubnetCidrReservationsResult
Declaration
Objective-C
- (id)getSubnetCidrReservations: (nonnull AWSEC2GetSubnetCidrReservationsRequest *)request;Swift
func getSubnetCidrReservations(_ request: AWSEC2GetSubnetCidrReservationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetSubnetCidrReservations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetSubnetCidrReservationsResult. -
Gets information about the subnet CIDR reservations.
See
AWSEC2GetSubnetCidrReservationsRequest
See
AWSEC2GetSubnetCidrReservationsResult
Declaration
Objective-C
- (void)getSubnetCidrReservations: (nonnull AWSEC2GetSubnetCidrReservationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetSubnetCidrReservationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func subnetCidrReservations(_ request: AWSEC2GetSubnetCidrReservationsRequest) async throws -> AWSEC2GetSubnetCidrReservationsResultParameters
requestA container for the necessary parameters to execute the GetSubnetCidrReservations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Lists the route tables to which the specified resource attachment propagates routes.
See
AWSEC2GetTransitGatewayAttachmentPropagationsRequest
See
AWSEC2GetTransitGatewayAttachmentPropagationsResult
Declaration
Objective-C
- (id)getTransitGatewayAttachmentPropagations: (nonnull AWSEC2GetTransitGatewayAttachmentPropagationsRequest *)request;Swift
func getTransitGatewayAttachmentPropagations(_ request: AWSEC2GetTransitGatewayAttachmentPropagationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetTransitGatewayAttachmentPropagations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetTransitGatewayAttachmentPropagationsResult. -
Lists the route tables to which the specified resource attachment propagates routes.
See
AWSEC2GetTransitGatewayAttachmentPropagationsRequest
See
AWSEC2GetTransitGatewayAttachmentPropagationsResult
Declaration
Objective-C
- (void) getTransitGatewayAttachmentPropagations: (nonnull AWSEC2GetTransitGatewayAttachmentPropagationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetTransitGatewayAttachmentPropagationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func transitGatewayAttachmentPropagations(_ request: AWSEC2GetTransitGatewayAttachmentPropagationsRequest) async throws -> AWSEC2GetTransitGatewayAttachmentPropagationsResultParameters
requestA container for the necessary parameters to execute the GetTransitGatewayAttachmentPropagations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets information about the associations for the transit gateway multicast domain.
See
AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest
See
AWSEC2GetTransitGatewayMulticastDomainAssociationsResult
Declaration
Objective-C
- (id)getTransitGatewayMulticastDomainAssociations: (nonnull AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest *) request;Swift
func getTransitGatewayMulticastDomainAssociations(_ request: AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetTransitGatewayMulticastDomainAssociations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetTransitGatewayMulticastDomainAssociationsResult. -
Gets information about the associations for the transit gateway multicast domain.
See
AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest
See
AWSEC2GetTransitGatewayMulticastDomainAssociationsResult
Declaration
Objective-C
- (void) getTransitGatewayMulticastDomainAssociations: (nonnull AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest *) request completionHandler: (void (^_Nullable)( AWSEC2GetTransitGatewayMulticastDomainAssociationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func transitGatewayMulticastDomainAssociations(_ request: AWSEC2GetTransitGatewayMulticastDomainAssociationsRequest) async throws -> AWSEC2GetTransitGatewayMulticastDomainAssociationsResultParameters
requestA container for the necessary parameters to execute the GetTransitGatewayMulticastDomainAssociations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets information about the prefix list references in a specified transit gateway route table.
See
AWSEC2GetTransitGatewayPrefixListReferencesRequest
See
AWSEC2GetTransitGatewayPrefixListReferencesResult
Declaration
Objective-C
- (id)getTransitGatewayPrefixListReferences: (nonnull AWSEC2GetTransitGatewayPrefixListReferencesRequest *)request;Swift
func getTransitGatewayPrefixListReferences(_ request: AWSEC2GetTransitGatewayPrefixListReferencesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetTransitGatewayPrefixListReferences service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetTransitGatewayPrefixListReferencesResult. -
Gets information about the prefix list references in a specified transit gateway route table.
See
AWSEC2GetTransitGatewayPrefixListReferencesRequest
See
AWSEC2GetTransitGatewayPrefixListReferencesResult
Declaration
Objective-C
- (void) getTransitGatewayPrefixListReferences: (nonnull AWSEC2GetTransitGatewayPrefixListReferencesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetTransitGatewayPrefixListReferencesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func transitGatewayPrefixListReferences(_ request: AWSEC2GetTransitGatewayPrefixListReferencesRequest) async throws -> AWSEC2GetTransitGatewayPrefixListReferencesResultParameters
requestA container for the necessary parameters to execute the GetTransitGatewayPrefixListReferences service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets information about the associations for the specified transit gateway route table.
See
AWSEC2GetTransitGatewayRouteTableAssociationsRequest
See
AWSEC2GetTransitGatewayRouteTableAssociationsResult
Declaration
Objective-C
- (id)getTransitGatewayRouteTableAssociations: (nonnull AWSEC2GetTransitGatewayRouteTableAssociationsRequest *)request;Swift
func getTransitGatewayRouteTableAssociations(_ request: AWSEC2GetTransitGatewayRouteTableAssociationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetTransitGatewayRouteTableAssociations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetTransitGatewayRouteTableAssociationsResult. -
Gets information about the associations for the specified transit gateway route table.
See
AWSEC2GetTransitGatewayRouteTableAssociationsRequest
See
AWSEC2GetTransitGatewayRouteTableAssociationsResult
Declaration
Objective-C
- (void) getTransitGatewayRouteTableAssociations: (nonnull AWSEC2GetTransitGatewayRouteTableAssociationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetTransitGatewayRouteTableAssociationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func transitGatewayRouteTableAssociations(_ request: AWSEC2GetTransitGatewayRouteTableAssociationsRequest) async throws -> AWSEC2GetTransitGatewayRouteTableAssociationsResultParameters
requestA container for the necessary parameters to execute the GetTransitGatewayRouteTableAssociations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Gets information about the route table propagations for the specified transit gateway route table.
See
AWSEC2GetTransitGatewayRouteTablePropagationsRequest
See
AWSEC2GetTransitGatewayRouteTablePropagationsResult
Declaration
Objective-C
- (id)getTransitGatewayRouteTablePropagations: (nonnull AWSEC2GetTransitGatewayRouteTablePropagationsRequest *)request;Swift
func getTransitGatewayRouteTablePropagations(_ request: AWSEC2GetTransitGatewayRouteTablePropagationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetTransitGatewayRouteTablePropagations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetTransitGatewayRouteTablePropagationsResult. -
Gets information about the route table propagations for the specified transit gateway route table.
See
AWSEC2GetTransitGatewayRouteTablePropagationsRequest
See
AWSEC2GetTransitGatewayRouteTablePropagationsResult
Declaration
Objective-C
- (void) getTransitGatewayRouteTablePropagations: (nonnull AWSEC2GetTransitGatewayRouteTablePropagationsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetTransitGatewayRouteTablePropagationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func transitGatewayRouteTablePropagations(_ request: AWSEC2GetTransitGatewayRouteTablePropagationsRequest) async throws -> AWSEC2GetTransitGatewayRouteTablePropagationsResultParameters
requestA container for the necessary parameters to execute the GetTransitGatewayRouteTablePropagations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Download an Amazon Web Services-provided sample configuration file to be used with the customer gateway device specified for your Site-to-Site VPN connection.
See
AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest
See
AWSEC2GetVpnConnectionDeviceSampleConfigurationResult
Declaration
Objective-C
- (id)getVpnConnectionDeviceSampleConfiguration: (nonnull AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest *)request;Swift
func getVpnConnectionDeviceSampleConfiguration(_ request: AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetVpnConnectionDeviceSampleConfiguration service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetVpnConnectionDeviceSampleConfigurationResult. -
Download an Amazon Web Services-provided sample configuration file to be used with the customer gateway device specified for your Site-to-Site VPN connection.
See
AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest
See
AWSEC2GetVpnConnectionDeviceSampleConfigurationResult
Declaration
Objective-C
- (void) getVpnConnectionDeviceSampleConfiguration: (nonnull AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest *) request completionHandler: (void (^_Nullable)( AWSEC2GetVpnConnectionDeviceSampleConfigurationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func vpnConnectionDeviceSampleConfiguration(_ request: AWSEC2GetVpnConnectionDeviceSampleConfigurationRequest) async throws -> AWSEC2GetVpnConnectionDeviceSampleConfigurationResultParameters
requestA container for the necessary parameters to execute the GetVpnConnectionDeviceSampleConfiguration service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Obtain a list of customer gateway devices for which sample configuration files can be provided. The request has no additional parameters. You can also see the list of device types with sample configuration files available under Your customer gateway device in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2GetVpnConnectionDeviceTypesRequest
See
AWSEC2GetVpnConnectionDeviceTypesResult
Declaration
Objective-C
- (id)getVpnConnectionDeviceTypes: (nonnull AWSEC2GetVpnConnectionDeviceTypesRequest *)request;Swift
func getVpnConnectionDeviceTypes(_ request: AWSEC2GetVpnConnectionDeviceTypesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the GetVpnConnectionDeviceTypes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2GetVpnConnectionDeviceTypesResult. -
Obtain a list of customer gateway devices for which sample configuration files can be provided. The request has no additional parameters. You can also see the list of device types with sample configuration files available under Your customer gateway device in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2GetVpnConnectionDeviceTypesRequest
See
AWSEC2GetVpnConnectionDeviceTypesResult
Declaration
Objective-C
- (void)getVpnConnectionDeviceTypes: (nonnull AWSEC2GetVpnConnectionDeviceTypesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2GetVpnConnectionDeviceTypesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func vpnConnectionDeviceTypes(_ request: AWSEC2GetVpnConnectionDeviceTypesRequest) async throws -> AWSEC2GetVpnConnectionDeviceTypesResultParameters
requestA container for the necessary parameters to execute the GetVpnConnectionDeviceTypes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Uploads a client certificate revocation list to the specified Client VPN endpoint. Uploading a client certificate revocation list overwrites the existing client certificate revocation list.
Uploading a client certificate revocation list resets existing client connections.
See
AWSEC2ImportClientVpnClientCertificateRevocationListRequest
See
AWSEC2ImportClientVpnClientCertificateRevocationListResult
Declaration
Objective-C
- (id)importClientVpnClientCertificateRevocationList: (nonnull AWSEC2ImportClientVpnClientCertificateRevocationListRequest *) request;Swift
func importClientVpnClientCertificateRevocationList(_ request: AWSEC2ImportClientVpnClientCertificateRevocationListRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ImportClientVpnClientCertificateRevocationList service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ImportClientVpnClientCertificateRevocationListResult. -
Uploads a client certificate revocation list to the specified Client VPN endpoint. Uploading a client certificate revocation list overwrites the existing client certificate revocation list.
Uploading a client certificate revocation list resets existing client connections.
See
AWSEC2ImportClientVpnClientCertificateRevocationListRequest
See
AWSEC2ImportClientVpnClientCertificateRevocationListResult
Declaration
Objective-C
- (void) importClientVpnClientCertificateRevocationList: (nonnull AWSEC2ImportClientVpnClientCertificateRevocationListRequest *) request completionHandler: (void (^_Nullable)( AWSEC2ImportClientVpnClientCertificateRevocationListResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func importClientVpnClientCertificateRevocationList(_ request: AWSEC2ImportClientVpnClientCertificateRevocationListRequest) async throws -> AWSEC2ImportClientVpnClientCertificateRevocationListResultParameters
requestA container for the necessary parameters to execute the ImportClientVpnClientCertificateRevocationList service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).
For more information, see Importing a VM as an image using VM Import/Export in the VM Import/Export User Guide.
See
AWSEC2ImportImageRequest
See
AWSEC2ImportImageResult
Declaration
Objective-C
- (id)importImage:(nonnull AWSEC2ImportImageRequest *)request;Swift
func importImage(_ request: AWSEC2ImportImageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ImportImage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ImportImageResult. -
Import single or multi-volume disk images or EBS snapshots into an Amazon Machine Image (AMI).
For more information, see Importing a VM as an image using VM Import/Export in the VM Import/Export User Guide.
See
AWSEC2ImportImageRequest
See
AWSEC2ImportImageResult
Declaration
Objective-C
- (void)importImage:(nonnull AWSEC2ImportImageRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ImportImageResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func importImage(_ request: AWSEC2ImportImageRequest) async throws -> AWSEC2ImportImageResultParameters
requestA container for the necessary parameters to execute the ImportImage service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates an import instance task using metadata from the specified disk image.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead.
This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing a VM to Amazon EC2 in the Amazon EC2 CLI Reference PDF file.
For information about the import manifest referenced by this API action, see VM Import Manifest.
See
AWSEC2ImportInstanceRequest
See
AWSEC2ImportInstanceResult
Declaration
Objective-C
- (id)importInstance:(nonnull AWSEC2ImportInstanceRequest *)request;Swift
func importInstance(_ request: AWSEC2ImportInstanceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ImportInstance service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ImportInstanceResult. -
Creates an import instance task using metadata from the specified disk image.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead.
This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing a VM to Amazon EC2 in the Amazon EC2 CLI Reference PDF file.
For information about the import manifest referenced by this API action, see VM Import Manifest.
See
AWSEC2ImportInstanceRequest
See
AWSEC2ImportInstanceResult
Declaration
Objective-C
- (void)importInstance:(nonnull AWSEC2ImportInstanceRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ImportInstanceResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func importInstance(_ request: AWSEC2ImportInstanceRequest) async throws -> AWSEC2ImportInstanceResultParameters
requestA container for the necessary parameters to execute the ImportInstance service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Imports the public key from an RSA or ED25519 key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which Amazon Web Services creates the key pair and gives the keys to you (Amazon Web Services keeps a copy of the public key). With ImportKeyPair, you create the key pair and give Amazon Web Services just the public key. The private key is never transferred between you and Amazon Web Services.
For more information about key pairs, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ImportKeyPairRequest
See
AWSEC2ImportKeyPairResult
Declaration
Objective-C
- (id)importKeyPair:(nonnull AWSEC2ImportKeyPairRequest *)request;Swift
func importKeyPair(_ request: AWSEC2ImportKeyPairRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ImportKeyPair service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ImportKeyPairResult. -
Imports the public key from an RSA or ED25519 key pair that you created with a third-party tool. Compare this with CreateKeyPair, in which Amazon Web Services creates the key pair and gives the keys to you (Amazon Web Services keeps a copy of the public key). With ImportKeyPair, you create the key pair and give Amazon Web Services just the public key. The private key is never transferred between you and Amazon Web Services.
For more information about key pairs, see Amazon EC2 key pairs in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ImportKeyPairRequest
See
AWSEC2ImportKeyPairResult
Declaration
Objective-C
- (void)importKeyPair:(nonnull AWSEC2ImportKeyPairRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ImportKeyPairResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func importKeyPair(_ request: AWSEC2ImportKeyPairRequest) async throws -> AWSEC2ImportKeyPairResultParameters
requestA container for the necessary parameters to execute the ImportKeyPair service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Imports a disk into an EBS snapshot.
For more information, see Importing a disk as a snapshot using VM Import/Export in the VM Import/Export User Guide.
See
AWSEC2ImportSnapshotRequest
See
AWSEC2ImportSnapshotResult
Declaration
Objective-C
- (id)importSnapshot:(nonnull AWSEC2ImportSnapshotRequest *)request;Swift
func importSnapshot(_ request: AWSEC2ImportSnapshotRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ImportSnapshot service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ImportSnapshotResult. -
Imports a disk into an EBS snapshot.
For more information, see Importing a disk as a snapshot using VM Import/Export in the VM Import/Export User Guide.
See
AWSEC2ImportSnapshotRequest
See
AWSEC2ImportSnapshotResult
Declaration
Objective-C
- (void)importSnapshot:(nonnull AWSEC2ImportSnapshotRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ImportSnapshotResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func importSnapshot(_ request: AWSEC2ImportSnapshotRequest) async throws -> AWSEC2ImportSnapshotResultParameters
requestA container for the necessary parameters to execute the ImportSnapshot service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates an import volume task using metadata from the specified disk image.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead. To import a disk to a snapshot, use ImportSnapshot instead.
This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing Disks to Amazon EBS in the Amazon EC2 CLI Reference PDF file.
For information about the import manifest referenced by this API action, see VM Import Manifest.
See
AWSEC2ImportVolumeRequest
See
AWSEC2ImportVolumeResult
Declaration
Objective-C
- (id)importVolume:(nonnull AWSEC2ImportVolumeRequest *)request;Swift
func importVolume(_ request: AWSEC2ImportVolumeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ImportVolume service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ImportVolumeResult. -
Creates an import volume task using metadata from the specified disk image.
This API action supports only single-volume VMs. To import multi-volume VMs, use ImportImage instead. To import a disk to a snapshot, use ImportSnapshot instead.
This API action is not supported by the Command Line Interface (CLI). For information about using the Amazon EC2 CLI, which is deprecated, see Importing Disks to Amazon EBS in the Amazon EC2 CLI Reference PDF file.
For information about the import manifest referenced by this API action, see VM Import Manifest.
See
AWSEC2ImportVolumeRequest
See
AWSEC2ImportVolumeResult
Declaration
Objective-C
- (void)importVolume:(nonnull AWSEC2ImportVolumeRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ImportVolumeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func importVolume(_ request: AWSEC2ImportVolumeRequest) async throws -> AWSEC2ImportVolumeResultParameters
requestA container for the necessary parameters to execute the ImportVolume service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Lists one or more AMIs that are currently in the Recycle Bin. For more information, see Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ListImagesInRecycleBinRequest
See
AWSEC2ListImagesInRecycleBinResult
Declaration
Objective-C
- (id)listImagesInRecycleBin: (nonnull AWSEC2ListImagesInRecycleBinRequest *)request;Swift
func listImages(inRecycleBin request: AWSEC2ListImagesInRecycleBinRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ListImagesInRecycleBin service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ListImagesInRecycleBinResult. -
Lists one or more AMIs that are currently in the Recycle Bin. For more information, see Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ListImagesInRecycleBinRequest
See
AWSEC2ListImagesInRecycleBinResult
Declaration
Objective-C
- (void) listImagesInRecycleBin: (nonnull AWSEC2ListImagesInRecycleBinRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ListImagesInRecycleBinResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func listImages(inRecycleBin request: AWSEC2ListImagesInRecycleBinRequest) async throws -> AWSEC2ListImagesInRecycleBinResultParameters
requestA container for the necessary parameters to execute the ListImagesInRecycleBin service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Lists one or more snapshots that are currently in the Recycle Bin.
See
AWSEC2ListSnapshotsInRecycleBinRequest
See
AWSEC2ListSnapshotsInRecycleBinResult
Declaration
Objective-C
- (id)listSnapshotsInRecycleBin: (nonnull AWSEC2ListSnapshotsInRecycleBinRequest *)request;Swift
func listSnapshots(inRecycleBin request: AWSEC2ListSnapshotsInRecycleBinRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ListSnapshotsInRecycleBin service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ListSnapshotsInRecycleBinResult. -
Lists one or more snapshots that are currently in the Recycle Bin.
See
AWSEC2ListSnapshotsInRecycleBinRequest
See
AWSEC2ListSnapshotsInRecycleBinResult
Declaration
Objective-C
- (void)listSnapshotsInRecycleBin: (nonnull AWSEC2ListSnapshotsInRecycleBinRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ListSnapshotsInRecycleBinResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func listSnapshots(inRecycleBin request: AWSEC2ListSnapshotsInRecycleBinRequest) async throws -> AWSEC2ListSnapshotsInRecycleBinResultParameters
requestA container for the necessary parameters to execute the ListSnapshotsInRecycleBin service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies an attribute of the specified Elastic IP address. For requirements, see Using reverse DNS for email applications.
See
AWSEC2ModifyAddressAttributeRequest
See
AWSEC2ModifyAddressAttributeResult
Declaration
Objective-C
- (id)modifyAddressAttribute: (nonnull AWSEC2ModifyAddressAttributeRequest *)request;Swift
func modifyAddressAttribute(_ request: AWSEC2ModifyAddressAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyAddressAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyAddressAttributeResult. -
Modifies an attribute of the specified Elastic IP address. For requirements, see Using reverse DNS for email applications.
See
AWSEC2ModifyAddressAttributeRequest
See
AWSEC2ModifyAddressAttributeResult
Declaration
Objective-C
- (void) modifyAddressAttribute: (nonnull AWSEC2ModifyAddressAttributeRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyAddressAttributeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyAddressAttribute(_ request: AWSEC2ModifyAddressAttributeRequest) async throws -> AWSEC2ModifyAddressAttributeResultParameters
requestA container for the necessary parameters to execute the ModifyAddressAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Changes the opt-in status of the Local Zone and Wavelength Zone group for your account.
Use DescribeAvailabilityZones to view the value for
GroupName.See
AWSEC2ModifyAvailabilityZoneGroupRequest
See
AWSEC2ModifyAvailabilityZoneGroupResult
Declaration
Objective-C
- (id)modifyAvailabilityZoneGroup: (nonnull AWSEC2ModifyAvailabilityZoneGroupRequest *)request;Swift
func modifyAvailabilityZoneGroup(_ request: AWSEC2ModifyAvailabilityZoneGroupRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyAvailabilityZoneGroup service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyAvailabilityZoneGroupResult. -
Changes the opt-in status of the Local Zone and Wavelength Zone group for your account.
Use DescribeAvailabilityZones to view the value for
GroupName.See
AWSEC2ModifyAvailabilityZoneGroupRequest
See
AWSEC2ModifyAvailabilityZoneGroupResult
Declaration
Objective-C
- (void)modifyAvailabilityZoneGroup: (nonnull AWSEC2ModifyAvailabilityZoneGroupRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyAvailabilityZoneGroupResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyAvailabilityZoneGroup(_ request: AWSEC2ModifyAvailabilityZoneGroupRequest) async throws -> AWSEC2ModifyAvailabilityZoneGroupResultParameters
requestA container for the necessary parameters to execute the ModifyAvailabilityZoneGroup service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies a Capacity Reservation’s capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation’s instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes.
See
AWSEC2ModifyCapacityReservationRequest
See
AWSEC2ModifyCapacityReservationResult
Declaration
Objective-C
- (id)modifyCapacityReservation: (nonnull AWSEC2ModifyCapacityReservationRequest *)request;Swift
func modifyCapacityReservation(_ request: AWSEC2ModifyCapacityReservationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyCapacityReservation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyCapacityReservationResult. -
Modifies a Capacity Reservation’s capacity and the conditions under which it is to be released. You cannot change a Capacity Reservation’s instance type, EBS optimization, instance store settings, platform, Availability Zone, or instance eligibility. If you need to modify any of these attributes, we recommend that you cancel the Capacity Reservation, and then create a new one with the required attributes.
See
AWSEC2ModifyCapacityReservationRequest
See
AWSEC2ModifyCapacityReservationResult
Declaration
Objective-C
- (void)modifyCapacityReservation: (nonnull AWSEC2ModifyCapacityReservationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyCapacityReservationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyCapacityReservation(_ request: AWSEC2ModifyCapacityReservationRequest) async throws -> AWSEC2ModifyCapacityReservationResultParameters
requestA container for the necessary parameters to execute the ModifyCapacityReservation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies a Capacity Reservation Fleet.
When you modify the total target capacity of a Capacity Reservation Fleet, the Fleet automatically creates new Capacity Reservations, or modifies or cancels existing Capacity Reservations in the Fleet to meet the new total target capacity. When you modify the end date for the Fleet, the end dates for all of the individual Capacity Reservations in the Fleet are updated accordingly.
See
AWSEC2ModifyCapacityReservationFleetRequest
See
AWSEC2ModifyCapacityReservationFleetResult
Declaration
Objective-C
- (id)modifyCapacityReservationFleet: (nonnull AWSEC2ModifyCapacityReservationFleetRequest *)request;Swift
func modifyCapacityReservationFleet(_ request: AWSEC2ModifyCapacityReservationFleetRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyCapacityReservationFleet service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyCapacityReservationFleetResult. -
Modifies a Capacity Reservation Fleet.
When you modify the total target capacity of a Capacity Reservation Fleet, the Fleet automatically creates new Capacity Reservations, or modifies or cancels existing Capacity Reservations in the Fleet to meet the new total target capacity. When you modify the end date for the Fleet, the end dates for all of the individual Capacity Reservations in the Fleet are updated accordingly.
See
AWSEC2ModifyCapacityReservationFleetRequest
See
AWSEC2ModifyCapacityReservationFleetResult
Declaration
Objective-C
- (void) modifyCapacityReservationFleet: (nonnull AWSEC2ModifyCapacityReservationFleetRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyCapacityReservationFleetResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyCapacityReservationFleet(_ request: AWSEC2ModifyCapacityReservationFleetRequest) async throws -> AWSEC2ModifyCapacityReservationFleetResultParameters
requestA container for the necessary parameters to execute the ModifyCapacityReservationFleet service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified Client VPN endpoint. Modifying the DNS server resets existing client connections.
See
AWSEC2ModifyClientVpnEndpointRequest
See
AWSEC2ModifyClientVpnEndpointResult
Declaration
Objective-C
- (id)modifyClientVpnEndpoint: (nonnull AWSEC2ModifyClientVpnEndpointRequest *)request;Swift
func modifyClientVpnEndpoint(_ request: AWSEC2ModifyClientVpnEndpointRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyClientVpnEndpoint service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyClientVpnEndpointResult. -
Modifies the specified Client VPN endpoint. Modifying the DNS server resets existing client connections.
See
AWSEC2ModifyClientVpnEndpointRequest
See
AWSEC2ModifyClientVpnEndpointResult
Declaration
Objective-C
- (void) modifyClientVpnEndpoint: (nonnull AWSEC2ModifyClientVpnEndpointRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyClientVpnEndpointResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyClientVpnEndpoint(_ request: AWSEC2ModifyClientVpnEndpointRequest) async throws -> AWSEC2ModifyClientVpnEndpointResultParameters
requestA container for the necessary parameters to execute the ModifyClientVpnEndpoint service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the default credit option for CPU usage of burstable performance instances. The default credit option is set at the account level per Amazon Web Services Region, and is specified per instance family. All new burstable performance instances in the account launch using the default credit option.
ModifyDefaultCreditSpecificationis an asynchronous operation, which works at an Amazon Web Services Region level and modifies the credit option for each Availability Zone. All zones in a Region are updated within five minutes. But if instances are launched during this operation, they might not get the new credit option until the zone is updated. To verify whether the update has occurred, you can callGetDefaultCreditSpecificationand checkDefaultCreditSpecificationfor updates.For more information, see Burstable performance instances in the Amazon EC2 User Guide.
See
AWSEC2ModifyDefaultCreditSpecificationRequest
See
AWSEC2ModifyDefaultCreditSpecificationResult
Declaration
Objective-C
- (id)modifyDefaultCreditSpecification: (nonnull AWSEC2ModifyDefaultCreditSpecificationRequest *)request;Swift
func modifyDefaultCreditSpecification(_ request: AWSEC2ModifyDefaultCreditSpecificationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyDefaultCreditSpecification service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyDefaultCreditSpecificationResult. -
Modifies the default credit option for CPU usage of burstable performance instances. The default credit option is set at the account level per Amazon Web Services Region, and is specified per instance family. All new burstable performance instances in the account launch using the default credit option.
ModifyDefaultCreditSpecificationis an asynchronous operation, which works at an Amazon Web Services Region level and modifies the credit option for each Availability Zone. All zones in a Region are updated within five minutes. But if instances are launched during this operation, they might not get the new credit option until the zone is updated. To verify whether the update has occurred, you can callGetDefaultCreditSpecificationand checkDefaultCreditSpecificationfor updates.For more information, see Burstable performance instances in the Amazon EC2 User Guide.
See
AWSEC2ModifyDefaultCreditSpecificationRequest
See
AWSEC2ModifyDefaultCreditSpecificationResult
Declaration
Objective-C
- (void)modifyDefaultCreditSpecification: (nonnull AWSEC2ModifyDefaultCreditSpecificationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyDefaultCreditSpecificationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyDefaultCreditSpecification(_ request: AWSEC2ModifyDefaultCreditSpecificationRequest) async throws -> AWSEC2ModifyDefaultCreditSpecificationResultParameters
requestA container for the necessary parameters to execute the ModifyDefaultCreditSpecification service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Changes the default KMS key for EBS encryption by default for your account in this Region.
Amazon Web Services creates a unique Amazon Web Services managed KMS key in each Region for use with encryption by default. If you change the default KMS key to a symmetric customer managed KMS key, it is used instead of the Amazon Web Services managed KMS key. To reset the default KMS key to the Amazon Web Services managed KMS key for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric KMS keys.
If you delete or disable the customer managed KMS key that you specified for use with encryption by default, your instances will fail to launch.
For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ModifyEbsDefaultKmsKeyIdRequest
See
AWSEC2ModifyEbsDefaultKmsKeyIdResult
Declaration
Objective-C
- (id)modifyEbsDefaultKmsKeyId: (nonnull AWSEC2ModifyEbsDefaultKmsKeyIdRequest *)request;Swift
func modifyEbsDefaultKmsKeyId(_ request: AWSEC2ModifyEbsDefaultKmsKeyIdRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyEbsDefaultKmsKeyId service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyEbsDefaultKmsKeyIdResult. -
Changes the default KMS key for EBS encryption by default for your account in this Region.
Amazon Web Services creates a unique Amazon Web Services managed KMS key in each Region for use with encryption by default. If you change the default KMS key to a symmetric customer managed KMS key, it is used instead of the Amazon Web Services managed KMS key. To reset the default KMS key to the Amazon Web Services managed KMS key for EBS, use ResetEbsDefaultKmsKeyId. Amazon EBS does not support asymmetric KMS keys.
If you delete or disable the customer managed KMS key that you specified for use with encryption by default, your instances will fail to launch.
For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ModifyEbsDefaultKmsKeyIdRequest
See
AWSEC2ModifyEbsDefaultKmsKeyIdResult
Declaration
Objective-C
- (void)modifyEbsDefaultKmsKeyId: (nonnull AWSEC2ModifyEbsDefaultKmsKeyIdRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyEbsDefaultKmsKeyIdResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyEbsDefaultKmsKeyId(_ request: AWSEC2ModifyEbsDefaultKmsKeyIdRequest) async throws -> AWSEC2ModifyEbsDefaultKmsKeyIdResultParameters
requestA container for the necessary parameters to execute the ModifyEbsDefaultKmsKeyId service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified EC2 Fleet.
You can only modify an EC2 Fleet request of type
maintain.While the EC2 Fleet is being modified, it is in the
modifyingstate.To scale up your EC2 Fleet, increase its target capacity. The EC2 Fleet launches the additional Spot Instances according to the allocation strategy for the EC2 Fleet request. If the allocation strategy is
lowest-price, the EC2 Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy isdiversified, the EC2 Fleet distributes the instances across the Spot Instance pools. If the allocation strategy iscapacity-optimized, EC2 Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.To scale down your EC2 Fleet, decrease its target capacity. First, the EC2 Fleet cancels any open requests that exceed the new target capacity. You can request that the EC2 Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is
lowest-price, the EC2 Fleet terminates the instances with the highest price per unit. If the allocation strategy iscapacity-optimized, the EC2 Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy isdiversified, the EC2 Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the EC2 Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.If you are finished with your EC2 Fleet for now, but will use it again later, you can set the target capacity to 0.
See
AWSEC2ModifyFleetRequest
See
AWSEC2ModifyFleetResult
Declaration
Objective-C
- (id)modifyFleet:(nonnull AWSEC2ModifyFleetRequest *)request;Swift
func modifyFleet(_ request: AWSEC2ModifyFleetRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyFleet service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyFleetResult. -
Modifies the specified EC2 Fleet.
You can only modify an EC2 Fleet request of type
maintain.While the EC2 Fleet is being modified, it is in the
modifyingstate.To scale up your EC2 Fleet, increase its target capacity. The EC2 Fleet launches the additional Spot Instances according to the allocation strategy for the EC2 Fleet request. If the allocation strategy is
lowest-price, the EC2 Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy isdiversified, the EC2 Fleet distributes the instances across the Spot Instance pools. If the allocation strategy iscapacity-optimized, EC2 Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.To scale down your EC2 Fleet, decrease its target capacity. First, the EC2 Fleet cancels any open requests that exceed the new target capacity. You can request that the EC2 Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is
lowest-price, the EC2 Fleet terminates the instances with the highest price per unit. If the allocation strategy iscapacity-optimized, the EC2 Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy isdiversified, the EC2 Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the EC2 Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.If you are finished with your EC2 Fleet for now, but will use it again later, you can set the target capacity to 0.
See
AWSEC2ModifyFleetRequest
See
AWSEC2ModifyFleetResult
Declaration
Objective-C
- (void)modifyFleet:(nonnull AWSEC2ModifyFleetRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ModifyFleetResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyFleet(_ request: AWSEC2ModifyFleetRequest) async throws -> AWSEC2ModifyFleetResultParameters
requestA container for the necessary parameters to execute the ModifyFleet service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified attribute of the specified Amazon FPGA Image (AFI).
See
AWSEC2ModifyFpgaImageAttributeRequest
See
AWSEC2ModifyFpgaImageAttributeResult
Declaration
Objective-C
- (id)modifyFpgaImageAttribute: (nonnull AWSEC2ModifyFpgaImageAttributeRequest *)request;Swift
func modifyFpgaImageAttribute(_ request: AWSEC2ModifyFpgaImageAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyFpgaImageAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyFpgaImageAttributeResult. -
Modifies the specified attribute of the specified Amazon FPGA Image (AFI).
See
AWSEC2ModifyFpgaImageAttributeRequest
See
AWSEC2ModifyFpgaImageAttributeResult
Declaration
Objective-C
- (void)modifyFpgaImageAttribute: (nonnull AWSEC2ModifyFpgaImageAttributeRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyFpgaImageAttributeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyFpgaImageAttribute(_ request: AWSEC2ModifyFpgaImageAttributeRequest) async throws -> AWSEC2ModifyFpgaImageAttributeResultParameters
requestA container for the necessary parameters to execute the ModifyFpgaImageAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, any instances that you launch with a tenancy of
hostbut without a specific host ID are placed onto any available Dedicated Host in your account that has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID to have the instance launch onto a specific host. If no host ID is provided, the instance is launched onto a suitable host with auto-placement enabled.You can also use this API action to modify a Dedicated Host to support either multiple instance types in an instance family, or to support a specific instance type only.
See
AWSEC2ModifyHostsRequest
See
AWSEC2ModifyHostsResult
Declaration
Objective-C
- (id)modifyHosts:(nonnull AWSEC2ModifyHostsRequest *)request;Swift
func modifyHosts(_ request: AWSEC2ModifyHostsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyHosts service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyHostsResult. -
Modify the auto-placement setting of a Dedicated Host. When auto-placement is enabled, any instances that you launch with a tenancy of
hostbut without a specific host ID are placed onto any available Dedicated Host in your account that has auto-placement enabled. When auto-placement is disabled, you need to provide a host ID to have the instance launch onto a specific host. If no host ID is provided, the instance is launched onto a suitable host with auto-placement enabled.You can also use this API action to modify a Dedicated Host to support either multiple instance types in an instance family, or to support a specific instance type only.
See
AWSEC2ModifyHostsRequest
See
AWSEC2ModifyHostsResult
Declaration
Objective-C
- (void)modifyHosts:(nonnull AWSEC2ModifyHostsRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ModifyHostsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyHosts(_ request: AWSEC2ModifyHostsRequest) async throws -> AWSEC2ModifyHostsResultParameters
requestA container for the necessary parameters to execute the ModifyHosts service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the ID format for the specified resource on a per-Region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created.
This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|route-table|route-table-association|security-group|subnet|subnet-cidr-block-association|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.This setting applies to the IAM user who makes the request; it does not apply to the entire Amazon Web Services account. By default, an IAM user defaults to the same settings as the root user. If you’re using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.
Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant
Describecommand for the resource type.See
AWSEC2ModifyIdFormatRequest
Declaration
Objective-C
- (id)modifyIdFormat:(nonnull AWSEC2ModifyIdFormatRequest *)request;Swift
func modifyIdFormat(_ request: AWSEC2ModifyIdFormatRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyIdFormat service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Modifies the ID format for the specified resource on a per-Region basis. You can specify that resources should receive longer IDs (17-character IDs) when they are created.
This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|route-table|route-table-association|security-group|subnet|subnet-cidr-block-association|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.This setting applies to the IAM user who makes the request; it does not apply to the entire Amazon Web Services account. By default, an IAM user defaults to the same settings as the root user. If you’re using this action as the root user, then these settings apply to the entire account, unless an IAM user explicitly overrides these settings for themselves. For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.
Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant
Describecommand for the resource type.See
AWSEC2ModifyIdFormatRequest
Declaration
Objective-C
- (void)modifyIdFormat:(nonnull AWSEC2ModifyIdFormatRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func modifyIdFormat(_ request: AWSEC2ModifyIdFormatRequest) async throwsParameters
requestA container for the necessary parameters to execute the ModifyIdFormat service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. You can specify that resources should receive longer IDs (17-character IDs) when they are created.
This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|route-table|route-table-association|security-group|subnet|subnet-cidr-block-association|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.
This setting applies to the principal specified in the request; it does not apply to the principal that makes the request.
Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant
Describecommand for the resource type.See
AWSEC2ModifyIdentityIdFormatRequest
Declaration
Objective-C
- (id)modifyIdentityIdFormat: (nonnull AWSEC2ModifyIdentityIdFormatRequest *)request;Swift
func modifyIdentityIdFormat(_ request: AWSEC2ModifyIdentityIdFormatRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyIdentityIdFormat service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Modifies the ID format of a resource for a specified IAM user, IAM role, or the root user for an account; or all IAM users, IAM roles, and the root user for an account. You can specify that resources should receive longer IDs (17-character IDs) when they are created.
This request can only be used to modify longer ID settings for resource types that are within the opt-in period. Resources currently in their opt-in period include:
bundle|conversion-task|customer-gateway|dhcp-options|elastic-ip-allocation|elastic-ip-association|export-task|flow-log|image|import-task|internet-gateway|network-acl|network-acl-association|network-interface|network-interface-attachment|prefix-list|route-table|route-table-association|security-group|subnet|subnet-cidr-block-association|vpc|vpc-cidr-block-association|vpc-endpoint|vpc-peering-connection|vpn-connection|vpn-gateway.For more information, see Resource IDs in the Amazon Elastic Compute Cloud User Guide.
This setting applies to the principal specified in the request; it does not apply to the principal that makes the request.
Resources created with longer IDs are visible to all IAM roles and users, regardless of these settings and provided that they have permission to use the relevant
Describecommand for the resource type.See
AWSEC2ModifyIdentityIdFormatRequest
Declaration
Objective-C
- (void)modifyIdentityIdFormat: (nonnull AWSEC2ModifyIdentityIdFormatRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func modifyIdentityIdFormat(_ request: AWSEC2ModifyIdentityIdFormatRequest) async throwsParameters
requestA container for the necessary parameters to execute the ModifyIdentityIdFormat service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time. You can use the
Attributeparameter to specify the attribute or one of the following parameters:DescriptionorLaunchPermission.Images with an Amazon Web Services Marketplace product code cannot be made public.
To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.
See
AWSEC2ModifyImageAttributeRequest
Declaration
Objective-C
- (id)modifyImageAttribute:(nonnull AWSEC2ModifyImageAttributeRequest *)request;Swift
func modifyImageAttribute(_ request: AWSEC2ModifyImageAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyImageAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Modifies the specified attribute of the specified AMI. You can specify only one attribute at a time. You can use the
Attributeparameter to specify the attribute or one of the following parameters:DescriptionorLaunchPermission.Images with an Amazon Web Services Marketplace product code cannot be made public.
To enable the SriovNetSupport enhanced networking attribute of an image, enable SriovNetSupport on an instance and create an AMI from the instance.
See
AWSEC2ModifyImageAttributeRequest
Declaration
Objective-C
- (void)modifyImageAttribute: (nonnull AWSEC2ModifyImageAttributeRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func modifyImageAttribute(_ request: AWSEC2ModifyImageAttributeRequest) async throwsParameters
requestA container for the necessary parameters to execute the ModifyImageAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.
Note: Using this action to change the security groups associated with an elastic network interface (ENI) attached to an instance in a VPC can result in an error if the instance has more than one ENI. To change the security groups associated with an ENI attached to an instance that has multiple ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action.
To modify some attributes, the instance must be stopped. For more information, see Modify a stopped instance in the Amazon EC2 User Guide.
See
AWSEC2ModifyInstanceAttributeRequest
Declaration
Objective-C
- (id)modifyInstanceAttribute: (nonnull AWSEC2ModifyInstanceAttributeRequest *)request;Swift
func modifyInstanceAttribute(_ request: AWSEC2ModifyInstanceAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyInstanceAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Modifies the specified attribute of the specified instance. You can specify only one attribute at a time.
Note: Using this action to change the security groups associated with an elastic network interface (ENI) attached to an instance in a VPC can result in an error if the instance has more than one ENI. To change the security groups associated with an ENI attached to an instance that has multiple ENIs, we recommend that you use the ModifyNetworkInterfaceAttribute action.
To modify some attributes, the instance must be stopped. For more information, see Modify a stopped instance in the Amazon EC2 User Guide.
See
AWSEC2ModifyInstanceAttributeRequest
Declaration
Objective-C
- (void)modifyInstanceAttribute: (nonnull AWSEC2ModifyInstanceAttributeRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func modifyInstanceAttribute(_ request: AWSEC2ModifyInstanceAttributeRequest) async throwsParameters
requestA container for the necessary parameters to execute the ModifyInstanceAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any
openCapacity Reservation with matching attributes, or run On-Demand Instance capacity.See
AWSEC2ModifyInstanceCapacityReservationAttributesRequest
See
AWSEC2ModifyInstanceCapacityReservationAttributesResult
Declaration
Objective-C
- (id)modifyInstanceCapacityReservationAttributes: (nonnull AWSEC2ModifyInstanceCapacityReservationAttributesRequest *)request;Swift
func modifyInstanceCapacityReservationAttributes(_ request: AWSEC2ModifyInstanceCapacityReservationAttributesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyInstanceCapacityReservationAttributes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyInstanceCapacityReservationAttributesResult. -
Modifies the Capacity Reservation settings for a stopped instance. Use this action to configure an instance to target a specific Capacity Reservation, run in any
openCapacity Reservation with matching attributes, or run On-Demand Instance capacity.See
AWSEC2ModifyInstanceCapacityReservationAttributesRequest
See
AWSEC2ModifyInstanceCapacityReservationAttributesResult
Declaration
Objective-C
- (void) modifyInstanceCapacityReservationAttributes: (nonnull AWSEC2ModifyInstanceCapacityReservationAttributesRequest *) request completionHandler: (void (^_Nullable)( AWSEC2ModifyInstanceCapacityReservationAttributesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyInstanceCapacityReservationAttributes(_ request: AWSEC2ModifyInstanceCapacityReservationAttributesRequest) async throws -> AWSEC2ModifyInstanceCapacityReservationAttributesResultParameters
requestA container for the necessary parameters to execute the ModifyInstanceCapacityReservationAttributes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the credit option for CPU usage on a running or stopped burstable performance instance. The credit options are
standardandunlimited.For more information, see Burstable performance instances in the Amazon EC2 User Guide.
See
AWSEC2ModifyInstanceCreditSpecificationRequest
See
AWSEC2ModifyInstanceCreditSpecificationResult
Declaration
Objective-C
- (id)modifyInstanceCreditSpecification: (nonnull AWSEC2ModifyInstanceCreditSpecificationRequest *)request;Swift
func modifyInstanceCreditSpecification(_ request: AWSEC2ModifyInstanceCreditSpecificationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyInstanceCreditSpecification service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyInstanceCreditSpecificationResult. -
Modifies the credit option for CPU usage on a running or stopped burstable performance instance. The credit options are
standardandunlimited.For more information, see Burstable performance instances in the Amazon EC2 User Guide.
See
AWSEC2ModifyInstanceCreditSpecificationRequest
See
AWSEC2ModifyInstanceCreditSpecificationResult
Declaration
Objective-C
- (void)modifyInstanceCreditSpecification: (nonnull AWSEC2ModifyInstanceCreditSpecificationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyInstanceCreditSpecificationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyInstanceCreditSpecification(_ request: AWSEC2ModifyInstanceCreditSpecificationRequest) async throws -> AWSEC2ModifyInstanceCreditSpecificationResultParameters
requestA container for the necessary parameters to execute the ModifyInstanceCreditSpecification service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the start time for a scheduled Amazon EC2 instance event.
See
AWSEC2ModifyInstanceEventStartTimeRequest
See
AWSEC2ModifyInstanceEventStartTimeResult
Declaration
Objective-C
- (id)modifyInstanceEventStartTime: (nonnull AWSEC2ModifyInstanceEventStartTimeRequest *)request;Swift
func modifyInstanceEventStartTime(_ request: AWSEC2ModifyInstanceEventStartTimeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyInstanceEventStartTime service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyInstanceEventStartTimeResult. -
Modifies the start time for a scheduled Amazon EC2 instance event.
See
AWSEC2ModifyInstanceEventStartTimeRequest
See
AWSEC2ModifyInstanceEventStartTimeResult
Declaration
Objective-C
- (void)modifyInstanceEventStartTime: (nonnull AWSEC2ModifyInstanceEventStartTimeRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyInstanceEventStartTimeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyInstanceEventStartTime(_ request: AWSEC2ModifyInstanceEventStartTimeRequest) async throws -> AWSEC2ModifyInstanceEventStartTimeResultParameters
requestA container for the necessary parameters to execute the ModifyInstanceEventStartTime service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified event window.
You can define either a set of time ranges or a cron expression when modifying the event window, but not both.
To modify the targets associated with the event window, use the AssociateInstanceEventWindow and DisassociateInstanceEventWindow API.
If Amazon Web Services has already scheduled an event, modifying an event window won’t change the time of the scheduled event.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2ModifyInstanceEventWindowRequest
See
AWSEC2ModifyInstanceEventWindowResult
Declaration
Objective-C
- (id)modifyInstanceEventWindow: (nonnull AWSEC2ModifyInstanceEventWindowRequest *)request;Swift
func modifyInstanceEventWindow(_ request: AWSEC2ModifyInstanceEventWindowRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyInstanceEventWindow service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyInstanceEventWindowResult. -
Modifies the specified event window.
You can define either a set of time ranges or a cron expression when modifying the event window, but not both.
To modify the targets associated with the event window, use the AssociateInstanceEventWindow and DisassociateInstanceEventWindow API.
If Amazon Web Services has already scheduled an event, modifying an event window won’t change the time of the scheduled event.
For more information, see Define event windows for scheduled events in the Amazon EC2 User Guide.
See
AWSEC2ModifyInstanceEventWindowRequest
See
AWSEC2ModifyInstanceEventWindowResult
Declaration
Objective-C
- (void)modifyInstanceEventWindow: (nonnull AWSEC2ModifyInstanceEventWindowRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyInstanceEventWindowResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyInstanceEventWindow(_ request: AWSEC2ModifyInstanceEventWindowRequest) async throws -> AWSEC2ModifyInstanceEventWindowResultParameters
requestA container for the necessary parameters to execute the ModifyInstanceEventWindow service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the recovery behavior of your instance to disable simplified automatic recovery or set the recovery behavior to default. The default configuration will not enable simplified automatic recovery for an unsupported instance type. For more information, see Simplified automatic recovery.
See
AWSEC2ModifyInstanceMaintenanceOptionsRequest
See
AWSEC2ModifyInstanceMaintenanceOptionsResult
Declaration
Objective-C
- (id)modifyInstanceMaintenanceOptions: (nonnull AWSEC2ModifyInstanceMaintenanceOptionsRequest *)request;Swift
func modifyInstanceMaintenanceOptions(_ request: AWSEC2ModifyInstanceMaintenanceOptionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyInstanceMaintenanceOptions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyInstanceMaintenanceOptionsResult. -
Modifies the recovery behavior of your instance to disable simplified automatic recovery or set the recovery behavior to default. The default configuration will not enable simplified automatic recovery for an unsupported instance type. For more information, see Simplified automatic recovery.
See
AWSEC2ModifyInstanceMaintenanceOptionsRequest
See
AWSEC2ModifyInstanceMaintenanceOptionsResult
Declaration
Objective-C
- (void)modifyInstanceMaintenanceOptions: (nonnull AWSEC2ModifyInstanceMaintenanceOptionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyInstanceMaintenanceOptionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyInstanceMaintenanceOptions(_ request: AWSEC2ModifyInstanceMaintenanceOptionsRequest) async throws -> AWSEC2ModifyInstanceMaintenanceOptionsResultParameters
requestA container for the necessary parameters to execute the ModifyInstanceMaintenanceOptions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modify the instance metadata parameters on a running or stopped instance. When you modify the parameters on a stopped instance, they are applied when the instance is started. When you modify the parameters on a running instance, the API responds with a state of “pending”. After the parameter modifications are successfully applied to the instance, the state of the modifications changes from “pending” to “applied” in subsequent describe-instances API calls. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
See
AWSEC2ModifyInstanceMetadataOptionsRequest
See
AWSEC2ModifyInstanceMetadataOptionsResult
Declaration
Objective-C
- (id)modifyInstanceMetadataOptions: (nonnull AWSEC2ModifyInstanceMetadataOptionsRequest *)request;Swift
func modifyInstanceMetadataOptions(_ request: AWSEC2ModifyInstanceMetadataOptionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyInstanceMetadataOptions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyInstanceMetadataOptionsResult. -
Modify the instance metadata parameters on a running or stopped instance. When you modify the parameters on a stopped instance, they are applied when the instance is started. When you modify the parameters on a running instance, the API responds with a state of “pending”. After the parameter modifications are successfully applied to the instance, the state of the modifications changes from “pending” to “applied” in subsequent describe-instances API calls. For more information, see Instance metadata and user data in the Amazon EC2 User Guide.
See
AWSEC2ModifyInstanceMetadataOptionsRequest
See
AWSEC2ModifyInstanceMetadataOptionsResult
Declaration
Objective-C
- (void) modifyInstanceMetadataOptions: (nonnull AWSEC2ModifyInstanceMetadataOptionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyInstanceMetadataOptionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyInstanceMetadataOptions(_ request: AWSEC2ModifyInstanceMetadataOptionsRequest) async throws -> AWSEC2ModifyInstanceMetadataOptionsResultParameters
requestA container for the necessary parameters to execute the ModifyInstanceMetadataOptions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the placement attributes for a specified instance. You can do the following:
Modify the affinity between an instance and a Dedicated Host. When affinity is set to
hostand the instance is not associated with a specific Dedicated Host, the next time the instance is launched, it is automatically associated with the host on which it lands. If the instance is restarted or rebooted, this relationship persists.Change the Dedicated Host with which an instance is associated.
Change the instance tenancy of an instance.
Move an instance to or from a placement group.
At least one attribute for affinity, host ID, tenancy, or placement group name must be specified in the request. Affinity and tenancy can be modified in the same request.
To modify the host ID, tenancy, placement group, or partition for an instance, the instance must be in the
stoppedstate.See
AWSEC2ModifyInstancePlacementRequest
See
AWSEC2ModifyInstancePlacementResult
Declaration
Objective-C
- (id)modifyInstancePlacement: (nonnull AWSEC2ModifyInstancePlacementRequest *)request;Swift
func modifyInstancePlacement(_ request: AWSEC2ModifyInstancePlacementRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyInstancePlacement service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyInstancePlacementResult. -
Modifies the placement attributes for a specified instance. You can do the following:
Modify the affinity between an instance and a Dedicated Host. When affinity is set to
hostand the instance is not associated with a specific Dedicated Host, the next time the instance is launched, it is automatically associated with the host on which it lands. If the instance is restarted or rebooted, this relationship persists.Change the Dedicated Host with which an instance is associated.
Change the instance tenancy of an instance.
Move an instance to or from a placement group.
At least one attribute for affinity, host ID, tenancy, or placement group name must be specified in the request. Affinity and tenancy can be modified in the same request.
To modify the host ID, tenancy, placement group, or partition for an instance, the instance must be in the
stoppedstate.See
AWSEC2ModifyInstancePlacementRequest
See
AWSEC2ModifyInstancePlacementResult
Declaration
Objective-C
- (void) modifyInstancePlacement: (nonnull AWSEC2ModifyInstancePlacementRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyInstancePlacementResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyInstancePlacement(_ request: AWSEC2ModifyInstancePlacementRequest) async throws -> AWSEC2ModifyInstancePlacementResultParameters
requestA container for the necessary parameters to execute the ModifyInstancePlacement service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modify the configurations of an IPAM.
See
AWSEC2ModifyIpamRequest
See
AWSEC2ModifyIpamResult
Declaration
Objective-C
- (id)modifyIpam:(nonnull AWSEC2ModifyIpamRequest *)request;Swift
func modifyIpam(_ request: AWSEC2ModifyIpamRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyIpam service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyIpamResult. -
Modify the configurations of an IPAM.
See
AWSEC2ModifyIpamRequest
See
AWSEC2ModifyIpamResult
Declaration
Objective-C
- (void)modifyIpam:(nonnull AWSEC2ModifyIpamRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ModifyIpamResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyIpam(_ request: AWSEC2ModifyIpamRequest) async throws -> AWSEC2ModifyIpamResultParameters
requestA container for the necessary parameters to execute the ModifyIpam service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modify the configurations of an IPAM pool.
For more information, see Modify a pool in the Amazon VPC IPAM User Guide.
See
AWSEC2ModifyIpamPoolRequest
See
AWSEC2ModifyIpamPoolResult
Declaration
Objective-C
- (id)modifyIpamPool:(nonnull AWSEC2ModifyIpamPoolRequest *)request;Swift
func modifyIpamPool(_ request: AWSEC2ModifyIpamPoolRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyIpamPool service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyIpamPoolResult. -
Modify the configurations of an IPAM pool.
For more information, see Modify a pool in the Amazon VPC IPAM User Guide.
See
AWSEC2ModifyIpamPoolRequest
See
AWSEC2ModifyIpamPoolResult
Declaration
Objective-C
- (void)modifyIpamPool:(nonnull AWSEC2ModifyIpamPoolRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ModifyIpamPoolResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyIpamPool(_ request: AWSEC2ModifyIpamPoolRequest) async throws -> AWSEC2ModifyIpamPoolResultParameters
requestA container for the necessary parameters to execute the ModifyIpamPool service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modify a resource CIDR. You can use this action to transfer resource CIDRs between scopes and ignore resource CIDRs that you do not want to manage. If set to false, the resource will not be tracked for overlap, it cannot be auto-imported into a pool, and it will be removed from any pool it has an allocation in.
For more information, see Move resource CIDRs between scopes and Change the monitoring state of resource CIDRs in the Amazon VPC IPAM User Guide.
See
AWSEC2ModifyIpamResourceCidrRequest
See
AWSEC2ModifyIpamResourceCidrResult
Declaration
Objective-C
- (id)modifyIpamResourceCidr: (nonnull AWSEC2ModifyIpamResourceCidrRequest *)request;Swift
func modifyIpamResourceCidr(_ request: AWSEC2ModifyIpamResourceCidrRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyIpamResourceCidr service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyIpamResourceCidrResult. -
Modify a resource CIDR. You can use this action to transfer resource CIDRs between scopes and ignore resource CIDRs that you do not want to manage. If set to false, the resource will not be tracked for overlap, it cannot be auto-imported into a pool, and it will be removed from any pool it has an allocation in.
For more information, see Move resource CIDRs between scopes and Change the monitoring state of resource CIDRs in the Amazon VPC IPAM User Guide.
See
AWSEC2ModifyIpamResourceCidrRequest
See
AWSEC2ModifyIpamResourceCidrResult
Declaration
Objective-C
- (void) modifyIpamResourceCidr: (nonnull AWSEC2ModifyIpamResourceCidrRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyIpamResourceCidrResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyIpamResourceCidr(_ request: AWSEC2ModifyIpamResourceCidrRequest) async throws -> AWSEC2ModifyIpamResourceCidrResultParameters
requestA container for the necessary parameters to execute the ModifyIpamResourceCidr service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modify an IPAM scope.
See
AWSEC2ModifyIpamScopeRequest
See
AWSEC2ModifyIpamScopeResult
Declaration
Objective-C
- (id)modifyIpamScope:(nonnull AWSEC2ModifyIpamScopeRequest *)request;Swift
func modifyIpamScope(_ request: AWSEC2ModifyIpamScopeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyIpamScope service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyIpamScopeResult. -
Modify an IPAM scope.
See
AWSEC2ModifyIpamScopeRequest
See
AWSEC2ModifyIpamScopeResult
Declaration
Objective-C
- (void)modifyIpamScope:(nonnull AWSEC2ModifyIpamScopeRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyIpamScopeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyIpamScope(_ request: AWSEC2ModifyIpamScopeRequest) async throws -> AWSEC2ModifyIpamScopeResultParameters
requestA container for the necessary parameters to execute the ModifyIpamScope service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.
See
AWSEC2ModifyLaunchTemplateRequest
See
AWSEC2ModifyLaunchTemplateResult
Declaration
Objective-C
- (id)modifyLaunchTemplate:(nonnull AWSEC2ModifyLaunchTemplateRequest *)request;Swift
func modifyLaunchTemplate(_ request: AWSEC2ModifyLaunchTemplateRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyLaunchTemplate service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyLaunchTemplateResult. -
Modifies a launch template. You can specify which version of the launch template to set as the default version. When launching an instance, the default version applies when a launch template version is not specified.
See
AWSEC2ModifyLaunchTemplateRequest
See
AWSEC2ModifyLaunchTemplateResult
Declaration
Objective-C
- (void)modifyLaunchTemplate: (nonnull AWSEC2ModifyLaunchTemplateRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyLaunchTemplateResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyLaunchTemplate(_ request: AWSEC2ModifyLaunchTemplateRequest) async throws -> AWSEC2ModifyLaunchTemplateResultParameters
requestA container for the necessary parameters to execute the ModifyLaunchTemplate service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified managed prefix list.
Adding or removing entries in a prefix list creates a new version of the prefix list. Changing the name of the prefix list does not affect the version.
If you specify a current version number that does not match the true current version number, the request fails.
See
AWSEC2ModifyManagedPrefixListRequest
See
AWSEC2ModifyManagedPrefixListResult
Declaration
Objective-C
- (id)modifyManagedPrefixList: (nonnull AWSEC2ModifyManagedPrefixListRequest *)request;Swift
func modifyManagedPrefixList(_ request: AWSEC2ModifyManagedPrefixListRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyManagedPrefixList service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyManagedPrefixListResult. -
Modifies the specified managed prefix list.
Adding or removing entries in a prefix list creates a new version of the prefix list. Changing the name of the prefix list does not affect the version.
If you specify a current version number that does not match the true current version number, the request fails.
See
AWSEC2ModifyManagedPrefixListRequest
See
AWSEC2ModifyManagedPrefixListResult
Declaration
Objective-C
- (void) modifyManagedPrefixList: (nonnull AWSEC2ModifyManagedPrefixListRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyManagedPrefixListResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyManagedPrefixList(_ request: AWSEC2ModifyManagedPrefixListRequest) async throws -> AWSEC2ModifyManagedPrefixListResultParameters
requestA container for the necessary parameters to execute the ModifyManagedPrefixList service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified network interface attribute. You can specify only one attribute at a time. You can use this action to attach and detach security groups from an existing EC2 instance.
See
AWSEC2ModifyNetworkInterfaceAttributeRequest
Declaration
Objective-C
- (id)modifyNetworkInterfaceAttribute: (nonnull AWSEC2ModifyNetworkInterfaceAttributeRequest *)request;Swift
func modifyNetworkInterfaceAttribute(_ request: AWSEC2ModifyNetworkInterfaceAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyNetworkInterfaceAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Modifies the specified network interface attribute. You can specify only one attribute at a time. You can use this action to attach and detach security groups from an existing EC2 instance.
See
AWSEC2ModifyNetworkInterfaceAttributeRequest
Declaration
Objective-C
- (void)modifyNetworkInterfaceAttribute: (nonnull AWSEC2ModifyNetworkInterfaceAttributeRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable)) completionHandler;Swift
func modifyNetworkInterfaceAttribute(_ request: AWSEC2ModifyNetworkInterfaceAttributeRequest) async throwsParameters
requestA container for the necessary parameters to execute the ModifyNetworkInterfaceAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the options for instance hostnames for the specified instance.
See
AWSEC2ModifyPrivateDnsNameOptionsRequest
See
AWSEC2ModifyPrivateDnsNameOptionsResult
Declaration
Objective-C
- (id)modifyPrivateDnsNameOptions: (nonnull AWSEC2ModifyPrivateDnsNameOptionsRequest *)request;Swift
func modifyPrivateDnsNameOptions(_ request: AWSEC2ModifyPrivateDnsNameOptionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyPrivateDnsNameOptions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyPrivateDnsNameOptionsResult. -
Modifies the options for instance hostnames for the specified instance.
See
AWSEC2ModifyPrivateDnsNameOptionsRequest
See
AWSEC2ModifyPrivateDnsNameOptionsResult
Declaration
Objective-C
- (void)modifyPrivateDnsNameOptions: (nonnull AWSEC2ModifyPrivateDnsNameOptionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyPrivateDnsNameOptionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyPrivateDnsNameOptions(_ request: AWSEC2ModifyPrivateDnsNameOptionsRequest) async throws -> AWSEC2ModifyPrivateDnsNameOptionsResultParameters
requestA container for the necessary parameters to execute the ModifyPrivateDnsNameOptions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.
For more information, see Modifying Reserved Instances in the Amazon EC2 User Guide.
See
AWSEC2ModifyReservedInstancesRequest
See
AWSEC2ModifyReservedInstancesResult
Declaration
Objective-C
- (id)modifyReservedInstances: (nonnull AWSEC2ModifyReservedInstancesRequest *)request;Swift
func modifyReservedInstances(_ request: AWSEC2ModifyReservedInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyReservedInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyReservedInstancesResult. -
Modifies the Availability Zone, instance count, instance type, or network platform (EC2-Classic or EC2-VPC) of your Reserved Instances. The Reserved Instances to be modified must be identical, except for Availability Zone, network platform, and instance type.
For more information, see Modifying Reserved Instances in the Amazon EC2 User Guide.
See
AWSEC2ModifyReservedInstancesRequest
See
AWSEC2ModifyReservedInstancesResult
Declaration
Objective-C
- (void) modifyReservedInstances: (nonnull AWSEC2ModifyReservedInstancesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyReservedInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyReservedInstances(_ request: AWSEC2ModifyReservedInstancesRequest) async throws -> AWSEC2ModifyReservedInstancesResultParameters
requestA container for the necessary parameters to execute the ModifyReservedInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the rules of a security group.
See
AWSEC2ModifySecurityGroupRulesRequest
See
AWSEC2ModifySecurityGroupRulesResult
Declaration
Objective-C
- (id)modifySecurityGroupRules: (nonnull AWSEC2ModifySecurityGroupRulesRequest *)request;Swift
func modifySecurityGroupRules(_ request: AWSEC2ModifySecurityGroupRulesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifySecurityGroupRules service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifySecurityGroupRulesResult. -
Modifies the rules of a security group.
See
AWSEC2ModifySecurityGroupRulesRequest
See
AWSEC2ModifySecurityGroupRulesResult
Declaration
Objective-C
- (void)modifySecurityGroupRules: (nonnull AWSEC2ModifySecurityGroupRulesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifySecurityGroupRulesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifySecurityGroupRules(_ request: AWSEC2ModifySecurityGroupRulesRequest) async throws -> AWSEC2ModifySecurityGroupRulesResultParameters
requestA container for the necessary parameters to execute the ModifySecurityGroupRules service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Adds or removes permission settings for the specified snapshot. You may add or remove specified Amazon Web Services account IDs from a snapshot’s list of create volume permissions, but you cannot do both in a single operation. If you need to both add and remove account IDs for a snapshot, you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.
Encrypted snapshots and snapshots with Amazon Web Services Marketplace product codes cannot be made public. Snapshots encrypted with your default KMS key cannot be shared with other accounts.
For more information about modifying snapshot permissions, see Share a snapshot in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ModifySnapshotAttributeRequest
Declaration
Objective-C
- (id)modifySnapshotAttribute: (nonnull AWSEC2ModifySnapshotAttributeRequest *)request;Swift
func modifySnapshotAttribute(_ request: AWSEC2ModifySnapshotAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifySnapshotAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Adds or removes permission settings for the specified snapshot. You may add or remove specified Amazon Web Services account IDs from a snapshot’s list of create volume permissions, but you cannot do both in a single operation. If you need to both add and remove account IDs for a snapshot, you must use multiple operations. You can make up to 500 modifications to a snapshot in a single operation.
Encrypted snapshots and snapshots with Amazon Web Services Marketplace product codes cannot be made public. Snapshots encrypted with your default KMS key cannot be shared with other accounts.
For more information about modifying snapshot permissions, see Share a snapshot in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ModifySnapshotAttributeRequest
Declaration
Objective-C
- (void)modifySnapshotAttribute: (nonnull AWSEC2ModifySnapshotAttributeRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func modifySnapshotAttribute(_ request: AWSEC2ModifySnapshotAttributeRequest) async throwsParameters
requestA container for the necessary parameters to execute the ModifySnapshotAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Archives an Amazon EBS snapshot. When you archive a snapshot, it is converted to a full snapshot that includes all of the blocks of data that were written to the volume at the time the snapshot was created, and moved from the standard tier to the archive tier. For more information, see Archive Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ModifySnapshotTierRequest
See
AWSEC2ModifySnapshotTierResult
Declaration
Objective-C
- (id)modifySnapshotTier:(nonnull AWSEC2ModifySnapshotTierRequest *)request;Swift
func modifySnapshotTier(_ request: AWSEC2ModifySnapshotTierRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifySnapshotTier service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifySnapshotTierResult. -
Archives an Amazon EBS snapshot. When you archive a snapshot, it is converted to a full snapshot that includes all of the blocks of data that were written to the volume at the time the snapshot was created, and moved from the standard tier to the archive tier. For more information, see Archive Amazon EBS snapshots in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ModifySnapshotTierRequest
See
AWSEC2ModifySnapshotTierResult
Declaration
Objective-C
- (void)modifySnapshotTier:(nonnull AWSEC2ModifySnapshotTierRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifySnapshotTierResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifySnapshotTier(_ request: AWSEC2ModifySnapshotTierRequest) async throws -> AWSEC2ModifySnapshotTierResultParameters
requestA container for the necessary parameters to execute the ModifySnapshotTier service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified Spot Fleet request.
You can only modify a Spot Fleet request of type
maintain.While the Spot Fleet request is being modified, it is in the
modifyingstate.To scale up your Spot Fleet, increase its target capacity. The Spot Fleet launches the additional Spot Instances according to the allocation strategy for the Spot Fleet request. If the allocation strategy is
lowestPrice, the Spot Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy isdiversified, the Spot Fleet distributes the instances across the Spot Instance pools. If the allocation strategy iscapacityOptimized, Spot Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.To scale down your Spot Fleet, decrease its target capacity. First, the Spot Fleet cancels any open requests that exceed the new target capacity. You can request that the Spot Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is
lowestPrice, the Spot Fleet terminates the instances with the highest price per unit. If the allocation strategy iscapacityOptimized, the Spot Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy isdiversified, the Spot Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the Spot Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.If you are finished with your Spot Fleet for now, but will use it again later, you can set the target capacity to 0.
See
AWSEC2ModifySpotFleetRequestRequest
See
AWSEC2ModifySpotFleetRequestResponse
Declaration
Objective-C
- (id)modifySpotFleetRequest: (nonnull AWSEC2ModifySpotFleetRequestRequest *)request;Swift
func modifySpotFleetRequest(_ request: AWSEC2ModifySpotFleetRequestRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifySpotFleetRequest service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifySpotFleetRequestResponse. -
Modifies the specified Spot Fleet request.
You can only modify a Spot Fleet request of type
maintain.While the Spot Fleet request is being modified, it is in the
modifyingstate.To scale up your Spot Fleet, increase its target capacity. The Spot Fleet launches the additional Spot Instances according to the allocation strategy for the Spot Fleet request. If the allocation strategy is
lowestPrice, the Spot Fleet launches instances using the Spot Instance pool with the lowest price. If the allocation strategy isdiversified, the Spot Fleet distributes the instances across the Spot Instance pools. If the allocation strategy iscapacityOptimized, Spot Fleet launches instances from Spot Instance pools with optimal capacity for the number of instances that are launching.To scale down your Spot Fleet, decrease its target capacity. First, the Spot Fleet cancels any open requests that exceed the new target capacity. You can request that the Spot Fleet terminate Spot Instances until the size of the fleet no longer exceeds the new target capacity. If the allocation strategy is
lowestPrice, the Spot Fleet terminates the instances with the highest price per unit. If the allocation strategy iscapacityOptimized, the Spot Fleet terminates the instances in the Spot Instance pools that have the least available Spot Instance capacity. If the allocation strategy isdiversified, the Spot Fleet terminates instances across the Spot Instance pools. Alternatively, you can request that the Spot Fleet keep the fleet at its current size, but not replace any Spot Instances that are interrupted or that you terminate manually.If you are finished with your Spot Fleet for now, but will use it again later, you can set the target capacity to 0.
See
AWSEC2ModifySpotFleetRequestRequest
See
AWSEC2ModifySpotFleetRequestResponse
Declaration
Objective-C
- (void) modifySpotFleetRequest: (nonnull AWSEC2ModifySpotFleetRequestRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifySpotFleetRequestResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifySpotFleetRequest(_ request: AWSEC2ModifySpotFleetRequestRequest) async throws -> AWSEC2ModifySpotFleetRequestResponseParameters
requestA container for the necessary parameters to execute the ModifySpotFleetRequest service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies a subnet attribute. You can only modify one attribute at a time.
Use this action to modify subnets on Amazon Web Services Outposts.
To modify a subnet on an Outpost rack, set both
MapCustomerOwnedIpOnLaunchandCustomerOwnedIpv4Pool. These two parameters act as a single attribute.To modify a subnet on an Outpost server, set either
EnableLniAtDeviceIndexorDisableLniAtDeviceIndex.
For more information about Amazon Web Services Outposts, see the following:
See
AWSEC2ModifySubnetAttributeRequest
Declaration
Objective-C
- (id)modifySubnetAttribute: (nonnull AWSEC2ModifySubnetAttributeRequest *)request;Swift
func modifySubnetAttribute(_ request: AWSEC2ModifySubnetAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifySubnetAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Modifies a subnet attribute. You can only modify one attribute at a time.
Use this action to modify subnets on Amazon Web Services Outposts.
To modify a subnet on an Outpost rack, set both
MapCustomerOwnedIpOnLaunchandCustomerOwnedIpv4Pool. These two parameters act as a single attribute.To modify a subnet on an Outpost server, set either
EnableLniAtDeviceIndexorDisableLniAtDeviceIndex.
For more information about Amazon Web Services Outposts, see the following:
See
AWSEC2ModifySubnetAttributeRequest
Declaration
Objective-C
- (void)modifySubnetAttribute: (nonnull AWSEC2ModifySubnetAttributeRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func modifySubnetAttribute(_ request: AWSEC2ModifySubnetAttributeRequest) async throwsParameters
requestA container for the necessary parameters to execute the ModifySubnetAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Allows or restricts mirroring network services.
By default, Amazon DNS network services are not eligible for Traffic Mirror. Use
AddNetworkServicesto add network services to a Traffic Mirror filter. When a network service is added to the Traffic Mirror filter, all traffic related to that network service will be mirrored. When you no longer want to mirror network services, useRemoveNetworkServicesto remove the network services from the Traffic Mirror filter.See
AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest
See
AWSEC2ModifyTrafficMirrorFilterNetworkServicesResult
Declaration
Objective-C
- (id)modifyTrafficMirrorFilterNetworkServices: (nonnull AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest *)request;Swift
func modifyTrafficMirrorFilterNetworkServices(_ request: AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyTrafficMirrorFilterNetworkServices service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyTrafficMirrorFilterNetworkServicesResult. -
Allows or restricts mirroring network services.
By default, Amazon DNS network services are not eligible for Traffic Mirror. Use
AddNetworkServicesto add network services to a Traffic Mirror filter. When a network service is added to the Traffic Mirror filter, all traffic related to that network service will be mirrored. When you no longer want to mirror network services, useRemoveNetworkServicesto remove the network services from the Traffic Mirror filter.See
AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest
See
AWSEC2ModifyTrafficMirrorFilterNetworkServicesResult
Declaration
Objective-C
- (void) modifyTrafficMirrorFilterNetworkServices: (nonnull AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyTrafficMirrorFilterNetworkServicesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyTrafficMirrorFilterNetworkServices(_ request: AWSEC2ModifyTrafficMirrorFilterNetworkServicesRequest) async throws -> AWSEC2ModifyTrafficMirrorFilterNetworkServicesResultParameters
requestA container for the necessary parameters to execute the ModifyTrafficMirrorFilterNetworkServices service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified Traffic Mirror rule.
DestinationCidrBlockandSourceCidrBlockmust both be an IPv4 range or an IPv6 range.See
AWSEC2ModifyTrafficMirrorFilterRuleRequest
See
AWSEC2ModifyTrafficMirrorFilterRuleResult
Declaration
Objective-C
- (id)modifyTrafficMirrorFilterRule: (nonnull AWSEC2ModifyTrafficMirrorFilterRuleRequest *)request;Swift
func modifyTrafficMirrorFilterRule(_ request: AWSEC2ModifyTrafficMirrorFilterRuleRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyTrafficMirrorFilterRule service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyTrafficMirrorFilterRuleResult. -
Modifies the specified Traffic Mirror rule.
DestinationCidrBlockandSourceCidrBlockmust both be an IPv4 range or an IPv6 range.See
AWSEC2ModifyTrafficMirrorFilterRuleRequest
See
AWSEC2ModifyTrafficMirrorFilterRuleResult
Declaration
Objective-C
- (void) modifyTrafficMirrorFilterRule: (nonnull AWSEC2ModifyTrafficMirrorFilterRuleRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyTrafficMirrorFilterRuleResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyTrafficMirrorFilterRule(_ request: AWSEC2ModifyTrafficMirrorFilterRuleRequest) async throws -> AWSEC2ModifyTrafficMirrorFilterRuleResultParameters
requestA container for the necessary parameters to execute the ModifyTrafficMirrorFilterRule service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies a Traffic Mirror session.
See
AWSEC2ModifyTrafficMirrorSessionRequest
See
AWSEC2ModifyTrafficMirrorSessionResult
Declaration
Objective-C
- (id)modifyTrafficMirrorSession: (nonnull AWSEC2ModifyTrafficMirrorSessionRequest *)request;Swift
func modifyTrafficMirrorSession(_ request: AWSEC2ModifyTrafficMirrorSessionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyTrafficMirrorSession service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyTrafficMirrorSessionResult. -
Modifies a Traffic Mirror session.
See
AWSEC2ModifyTrafficMirrorSessionRequest
See
AWSEC2ModifyTrafficMirrorSessionResult
Declaration
Objective-C
- (void)modifyTrafficMirrorSession: (nonnull AWSEC2ModifyTrafficMirrorSessionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyTrafficMirrorSessionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyTrafficMirrorSession(_ request: AWSEC2ModifyTrafficMirrorSessionRequest) async throws -> AWSEC2ModifyTrafficMirrorSessionResultParameters
requestA container for the necessary parameters to execute the ModifyTrafficMirrorSession service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified transit gateway. When you modify a transit gateway, the modified options are applied to new transit gateway attachments only. Your existing transit gateway attachments are not modified.
See
AWSEC2ModifyTransitGatewayRequest
See
AWSEC2ModifyTransitGatewayResult
Declaration
Objective-C
- (id)modifyTransitGateway:(nonnull AWSEC2ModifyTransitGatewayRequest *)request;Swift
func modifyTransitGateway(_ request: AWSEC2ModifyTransitGatewayRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyTransitGateway service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyTransitGatewayResult. -
Modifies the specified transit gateway. When you modify a transit gateway, the modified options are applied to new transit gateway attachments only. Your existing transit gateway attachments are not modified.
See
AWSEC2ModifyTransitGatewayRequest
See
AWSEC2ModifyTransitGatewayResult
Declaration
Objective-C
- (void)modifyTransitGateway: (nonnull AWSEC2ModifyTransitGatewayRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyTransitGatewayResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyTransitGateway(_ request: AWSEC2ModifyTransitGatewayRequest) async throws -> AWSEC2ModifyTransitGatewayResultParameters
requestA container for the necessary parameters to execute the ModifyTransitGateway service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies a reference (route) to a prefix list in a specified transit gateway route table.
See
AWSEC2ModifyTransitGatewayPrefixListReferenceRequest
See
AWSEC2ModifyTransitGatewayPrefixListReferenceResult
Declaration
Objective-C
- (id)modifyTransitGatewayPrefixListReference: (nonnull AWSEC2ModifyTransitGatewayPrefixListReferenceRequest *)request;Swift
func modifyTransitGatewayPrefixListReference(_ request: AWSEC2ModifyTransitGatewayPrefixListReferenceRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyTransitGatewayPrefixListReference service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyTransitGatewayPrefixListReferenceResult. -
Modifies a reference (route) to a prefix list in a specified transit gateway route table.
See
AWSEC2ModifyTransitGatewayPrefixListReferenceRequest
See
AWSEC2ModifyTransitGatewayPrefixListReferenceResult
Declaration
Objective-C
- (void) modifyTransitGatewayPrefixListReference: (nonnull AWSEC2ModifyTransitGatewayPrefixListReferenceRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyTransitGatewayPrefixListReferenceResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyTransitGatewayPrefixListReference(_ request: AWSEC2ModifyTransitGatewayPrefixListReferenceRequest) async throws -> AWSEC2ModifyTransitGatewayPrefixListReferenceResultParameters
requestA container for the necessary parameters to execute the ModifyTransitGatewayPrefixListReference service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified VPC attachment.
See
AWSEC2ModifyTransitGatewayVpcAttachmentRequest
See
AWSEC2ModifyTransitGatewayVpcAttachmentResult
Declaration
Objective-C
- (id)modifyTransitGatewayVpcAttachment: (nonnull AWSEC2ModifyTransitGatewayVpcAttachmentRequest *)request;Swift
func modifyTransitGatewayVpcAttachment(_ request: AWSEC2ModifyTransitGatewayVpcAttachmentRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyTransitGatewayVpcAttachment service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyTransitGatewayVpcAttachmentResult. -
Modifies the specified VPC attachment.
See
AWSEC2ModifyTransitGatewayVpcAttachmentRequest
See
AWSEC2ModifyTransitGatewayVpcAttachmentResult
Declaration
Objective-C
- (void)modifyTransitGatewayVpcAttachment: (nonnull AWSEC2ModifyTransitGatewayVpcAttachmentRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyTransitGatewayVpcAttachmentResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyTransitGatewayVpcAttachment(_ request: AWSEC2ModifyTransitGatewayVpcAttachmentRequest) async throws -> AWSEC2ModifyTransitGatewayVpcAttachmentResultParameters
requestA container for the necessary parameters to execute the ModifyTransitGatewayVpcAttachment service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you might be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying EBS volumes, see Amazon EBS Elastic Volumes (Linux instances) or Amazon EBS Elastic Volumes (Windows instances).
When you complete a resize operation on your volume, you need to extend the volume’s file-system size to take advantage of the new storage capacity. For more information, see Extend a Linux file system or Extend a Windows file system.
You can use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. You can also track the status of a modification using DescribeVolumesModifications. For information about tracking status changes using either method, see Monitor the progress of volume modifications.
With previous-generation instance types, resizing an EBS volume might require detaching and reattaching the volume or stopping and restarting the instance.
After modifying a volume, you must wait at least six hours and ensure that the volume is in the
in-useoravailablestate before you can modify the same volume. This is sometimes referred to as a cooldown period.See
AWSEC2ModifyVolumeRequest
See
AWSEC2ModifyVolumeResult
Declaration
Objective-C
- (id)modifyVolume:(nonnull AWSEC2ModifyVolumeRequest *)request;Swift
func modifyVolume(_ request: AWSEC2ModifyVolumeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVolume service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVolumeResult. -
You can modify several parameters of an existing EBS volume, including volume size, volume type, and IOPS capacity. If your EBS volume is attached to a current-generation EC2 instance type, you might be able to apply these changes without stopping the instance or detaching the volume from it. For more information about modifying EBS volumes, see Amazon EBS Elastic Volumes (Linux instances) or Amazon EBS Elastic Volumes (Windows instances).
When you complete a resize operation on your volume, you need to extend the volume’s file-system size to take advantage of the new storage capacity. For more information, see Extend a Linux file system or Extend a Windows file system.
You can use CloudWatch Events to check the status of a modification to an EBS volume. For information about CloudWatch Events, see the Amazon CloudWatch Events User Guide. You can also track the status of a modification using DescribeVolumesModifications. For information about tracking status changes using either method, see Monitor the progress of volume modifications.
With previous-generation instance types, resizing an EBS volume might require detaching and reattaching the volume or stopping and restarting the instance.
After modifying a volume, you must wait at least six hours and ensure that the volume is in the
in-useoravailablestate before you can modify the same volume. This is sometimes referred to as a cooldown period.See
AWSEC2ModifyVolumeRequest
See
AWSEC2ModifyVolumeResult
Declaration
Objective-C
- (void)modifyVolume:(nonnull AWSEC2ModifyVolumeRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ModifyVolumeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVolume(_ request: AWSEC2ModifyVolumeRequest) async throws -> AWSEC2ModifyVolumeResultParameters
requestA container for the necessary parameters to execute the ModifyVolume service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies a volume attribute.
By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.
You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.
See
AWSEC2ModifyVolumeAttributeRequest
Declaration
Objective-C
- (id)modifyVolumeAttribute: (nonnull AWSEC2ModifyVolumeAttributeRequest *)request;Swift
func modifyVolumeAttribute(_ request: AWSEC2ModifyVolumeAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVolumeAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Modifies a volume attribute.
By default, all I/O operations for the volume are suspended when the data on the volume is determined to be potentially inconsistent, to prevent undetectable, latent data corruption. The I/O access to the volume can be resumed by first enabling I/O access and then checking the data consistency on your volume.
You can change the default behavior to resume I/O operations. We recommend that you change this only for boot volumes or for volumes that are stateless or disposable.
See
AWSEC2ModifyVolumeAttributeRequest
Declaration
Objective-C
- (void)modifyVolumeAttribute: (nonnull AWSEC2ModifyVolumeAttributeRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func modifyVolumeAttribute(_ request: AWSEC2ModifyVolumeAttributeRequest) async throwsParameters
requestA container for the necessary parameters to execute the ModifyVolumeAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the specified attribute of the specified VPC.
See
AWSEC2ModifyVpcAttributeRequest
Declaration
Objective-C
- (id)modifyVpcAttribute:(nonnull AWSEC2ModifyVpcAttributeRequest *)request;Swift
func modifyVpcAttribute(_ request: AWSEC2ModifyVpcAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpcAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Modifies the specified attribute of the specified VPC.
See
AWSEC2ModifyVpcAttributeRequest
Declaration
Objective-C
- (void)modifyVpcAttribute:(nonnull AWSEC2ModifyVpcAttributeRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func modifyVpcAttribute(_ request: AWSEC2ModifyVpcAttributeRequest) async throwsParameters
requestA container for the necessary parameters to execute the ModifyVpcAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies attributes of a specified VPC endpoint. The attributes that you can modify depend on the type of VPC endpoint (interface, gateway, or Gateway Load Balancer). For more information, see the Amazon Web Services PrivateLink Guide.
See
AWSEC2ModifyVpcEndpointRequest
See
AWSEC2ModifyVpcEndpointResult
Declaration
Objective-C
- (id)modifyVpcEndpoint:(nonnull AWSEC2ModifyVpcEndpointRequest *)request;Swift
func modifyVpcEndpoint(_ request: AWSEC2ModifyVpcEndpointRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpcEndpoint service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVpcEndpointResult. -
Modifies attributes of a specified VPC endpoint. The attributes that you can modify depend on the type of VPC endpoint (interface, gateway, or Gateway Load Balancer). For more information, see the Amazon Web Services PrivateLink Guide.
See
AWSEC2ModifyVpcEndpointRequest
See
AWSEC2ModifyVpcEndpointResult
Declaration
Objective-C
- (void)modifyVpcEndpoint:(nonnull AWSEC2ModifyVpcEndpointRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyVpcEndpointResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVpcEndpoint(_ request: AWSEC2ModifyVpcEndpointRequest) async throws -> AWSEC2ModifyVpcEndpointResultParameters
requestA container for the necessary parameters to execute the ModifyVpcEndpoint service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified.
See
AWSEC2ModifyVpcEndpointConnectionNotificationRequest
See
AWSEC2ModifyVpcEndpointConnectionNotificationResult
Declaration
Objective-C
- (id)modifyVpcEndpointConnectionNotification: (nonnull AWSEC2ModifyVpcEndpointConnectionNotificationRequest *)request;Swift
func modifyVpcEndpointConnectionNotification(_ request: AWSEC2ModifyVpcEndpointConnectionNotificationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpcEndpointConnectionNotification service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVpcEndpointConnectionNotificationResult. -
Modifies a connection notification for VPC endpoint or VPC endpoint service. You can change the SNS topic for the notification, or the events for which to be notified.
See
AWSEC2ModifyVpcEndpointConnectionNotificationRequest
See
AWSEC2ModifyVpcEndpointConnectionNotificationResult
Declaration
Objective-C
- (void) modifyVpcEndpointConnectionNotification: (nonnull AWSEC2ModifyVpcEndpointConnectionNotificationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyVpcEndpointConnectionNotificationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVpcEndpointConnectionNotification(_ request: AWSEC2ModifyVpcEndpointConnectionNotificationRequest) async throws -> AWSEC2ModifyVpcEndpointConnectionNotificationResultParameters
requestA container for the necessary parameters to execute the ModifyVpcEndpointConnectionNotification service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers or Gateway Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.
If you set or modify the private DNS name, you must prove that you own the private DNS domain name.
See
AWSEC2ModifyVpcEndpointServiceConfigurationRequest
See
AWSEC2ModifyVpcEndpointServiceConfigurationResult
Declaration
Objective-C
- (id)modifyVpcEndpointServiceConfiguration: (nonnull AWSEC2ModifyVpcEndpointServiceConfigurationRequest *)request;Swift
func modifyVpcEndpointServiceConfiguration(_ request: AWSEC2ModifyVpcEndpointServiceConfigurationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpcEndpointServiceConfiguration service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVpcEndpointServiceConfigurationResult. -
Modifies the attributes of your VPC endpoint service configuration. You can change the Network Load Balancers or Gateway Load Balancers for your service, and you can specify whether acceptance is required for requests to connect to your endpoint service through an interface VPC endpoint.
If you set or modify the private DNS name, you must prove that you own the private DNS domain name.
See
AWSEC2ModifyVpcEndpointServiceConfigurationRequest
See
AWSEC2ModifyVpcEndpointServiceConfigurationResult
Declaration
Objective-C
- (void) modifyVpcEndpointServiceConfiguration: (nonnull AWSEC2ModifyVpcEndpointServiceConfigurationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyVpcEndpointServiceConfigurationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVpcEndpointServiceConfiguration(_ request: AWSEC2ModifyVpcEndpointServiceConfigurationRequest) async throws -> AWSEC2ModifyVpcEndpointServiceConfigurationResultParameters
requestA container for the necessary parameters to execute the ModifyVpcEndpointServiceConfiguration service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the payer responsibility for your VPC endpoint service.
See
AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest
See
AWSEC2ModifyVpcEndpointServicePayerResponsibilityResult
Declaration
Objective-C
- (id)modifyVpcEndpointServicePayerResponsibility: (nonnull AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest *)request;Swift
func modifyVpcEndpointServicePayerResponsibility(_ request: AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpcEndpointServicePayerResponsibility service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVpcEndpointServicePayerResponsibilityResult. -
Modifies the payer responsibility for your VPC endpoint service.
See
AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest
See
AWSEC2ModifyVpcEndpointServicePayerResponsibilityResult
Declaration
Objective-C
- (void) modifyVpcEndpointServicePayerResponsibility: (nonnull AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest *) request completionHandler: (void (^_Nullable)( AWSEC2ModifyVpcEndpointServicePayerResponsibilityResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVpcEndpointServicePayerResponsibility(_ request: AWSEC2ModifyVpcEndpointServicePayerResponsibilityRequest) async throws -> AWSEC2ModifyVpcEndpointServicePayerResponsibilityResultParameters
requestA container for the necessary parameters to execute the ModifyVpcEndpointServicePayerResponsibility service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the permissions for your VPC endpoint service. You can add or remove permissions for service consumers (IAM users, IAM roles, and Amazon Web Services accounts) to connect to your endpoint service.
If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.
See
AWSEC2ModifyVpcEndpointServicePermissionsRequest
See
AWSEC2ModifyVpcEndpointServicePermissionsResult
Declaration
Objective-C
- (id)modifyVpcEndpointServicePermissions: (nonnull AWSEC2ModifyVpcEndpointServicePermissionsRequest *)request;Swift
func modifyVpcEndpointServicePermissions(_ request: AWSEC2ModifyVpcEndpointServicePermissionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpcEndpointServicePermissions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVpcEndpointServicePermissionsResult. -
Modifies the permissions for your VPC endpoint service. You can add or remove permissions for service consumers (IAM users, IAM roles, and Amazon Web Services accounts) to connect to your endpoint service.
If you grant permissions to all principals, the service is public. Any users who know the name of a public service can send a request to attach an endpoint. If the service does not require manual approval, attachments are automatically approved.
See
AWSEC2ModifyVpcEndpointServicePermissionsRequest
See
AWSEC2ModifyVpcEndpointServicePermissionsResult
Declaration
Objective-C
- (void) modifyVpcEndpointServicePermissions: (nonnull AWSEC2ModifyVpcEndpointServicePermissionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyVpcEndpointServicePermissionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVpcEndpointServicePermissions(_ request: AWSEC2ModifyVpcEndpointServicePermissionsRequest) async throws -> AWSEC2ModifyVpcEndpointServicePermissionsResultParameters
requestA container for the necessary parameters to execute the ModifyVpcEndpointServicePermissions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:
Enable/disable communication over the peering connection between an EC2-Classic instance that’s linked to your VPC (using ClassicLink) and instances in the peer VPC.
Enable/disable communication over the peering connection between instances in your VPC and an EC2-Classic instance that’s linked to the peer VPC.
Enable/disable the ability to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC.
If the peered VPCs are in the same Amazon Web Services account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different different Amazon Web Services accounts or different Regions. For peered VPCs in different Amazon Web Services accounts, each Amazon Web Services account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.
See
AWSEC2ModifyVpcPeeringConnectionOptionsRequest
See
AWSEC2ModifyVpcPeeringConnectionOptionsResult
Declaration
Objective-C
- (id)modifyVpcPeeringConnectionOptions: (nonnull AWSEC2ModifyVpcPeeringConnectionOptionsRequest *)request;Swift
func modifyVpcPeeringConnectionOptions(_ request: AWSEC2ModifyVpcPeeringConnectionOptionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpcPeeringConnectionOptions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVpcPeeringConnectionOptionsResult. -
Modifies the VPC peering connection options on one side of a VPC peering connection. You can do the following:
Enable/disable communication over the peering connection between an EC2-Classic instance that’s linked to your VPC (using ClassicLink) and instances in the peer VPC.
Enable/disable communication over the peering connection between instances in your VPC and an EC2-Classic instance that’s linked to the peer VPC.
Enable/disable the ability to resolve public DNS hostnames to private IP addresses when queried from instances in the peer VPC.
If the peered VPCs are in the same Amazon Web Services account, you can enable DNS resolution for queries from the local VPC. This ensures that queries from the local VPC resolve to private IP addresses in the peer VPC. This option is not available if the peered VPCs are in different different Amazon Web Services accounts or different Regions. For peered VPCs in different Amazon Web Services accounts, each Amazon Web Services account owner must initiate a separate request to modify the peering connection options. For inter-region peering connections, you must use the Region for the requester VPC to modify the requester VPC peering options and the Region for the accepter VPC to modify the accepter VPC peering options. To verify which VPCs are the accepter and the requester for a VPC peering connection, use the DescribeVpcPeeringConnections command.
See
AWSEC2ModifyVpcPeeringConnectionOptionsRequest
See
AWSEC2ModifyVpcPeeringConnectionOptionsResult
Declaration
Objective-C
- (void)modifyVpcPeeringConnectionOptions: (nonnull AWSEC2ModifyVpcPeeringConnectionOptionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyVpcPeeringConnectionOptionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVpcPeeringConnectionOptions(_ request: AWSEC2ModifyVpcPeeringConnectionOptionsRequest) async throws -> AWSEC2ModifyVpcPeeringConnectionOptionsResultParameters
requestA container for the necessary parameters to execute the ModifyVpcPeeringConnectionOptions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to
defaultonly. You cannot change the instance tenancy attribute todedicated.After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of
default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ModifyVpcTenancyRequest
See
AWSEC2ModifyVpcTenancyResult
Declaration
Objective-C
- (id)modifyVpcTenancy:(nonnull AWSEC2ModifyVpcTenancyRequest *)request;Swift
func modifyVpcTenancy(_ request: AWSEC2ModifyVpcTenancyRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpcTenancy service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVpcTenancyResult. -
Modifies the instance tenancy attribute of the specified VPC. You can change the instance tenancy attribute of a VPC to
defaultonly. You cannot change the instance tenancy attribute todedicated.After you modify the tenancy of the VPC, any new instances that you launch into the VPC have a tenancy of
default, unless you specify otherwise during launch. The tenancy of any existing instances in the VPC is not affected.For more information, see Dedicated Instances in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ModifyVpcTenancyRequest
See
AWSEC2ModifyVpcTenancyResult
Declaration
Objective-C
- (void)modifyVpcTenancy:(nonnull AWSEC2ModifyVpcTenancyRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyVpcTenancyResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVpcTenancy(_ request: AWSEC2ModifyVpcTenancyRequest) async throws -> AWSEC2ModifyVpcTenancyResultParameters
requestA container for the necessary parameters to execute the ModifyVpcTenancy service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the customer gateway or the target gateway of an Amazon Web Services Site-to-Site VPN connection. To modify the target gateway, the following migration options are available:
An existing virtual private gateway to a new virtual private gateway
An existing virtual private gateway to a transit gateway
An existing transit gateway to a new transit gateway
An existing transit gateway to a virtual private gateway
Before you perform the migration to the new gateway, you must configure the new gateway. Use CreateVpnGateway to create a virtual private gateway, or CreateTransitGateway to create a transit gateway.
This step is required when you migrate from a virtual private gateway with static routes to a transit gateway.
You must delete the static routes before you migrate to the new gateway.
Keep a copy of the static route before you delete it. You will need to add back these routes to the transit gateway after the VPN connection migration is complete.
After you migrate to the new gateway, you might need to modify your VPC route table. Use CreateRoute and DeleteRoute to make the changes described in Update VPC route tables in the Amazon Web Services Site-to-Site VPN User Guide.
When the new gateway is a transit gateway, modify the transit gateway route table to allow traffic between the VPC and the Amazon Web Services Site-to-Site VPN connection. Use CreateTransitGatewayRoute to add the routes.
If you deleted VPN static routes, you must add the static routes to the transit gateway route table.
After you perform this operation, the VPN endpoint’s IP addresses on the Amazon Web Services side and the tunnel options remain intact. Your Amazon Web Services Site-to-Site VPN connection will be temporarily unavailable for a brief period while we provision the new endpoints.
See
AWSEC2ModifyVpnConnectionRequest
See
AWSEC2ModifyVpnConnectionResult
Declaration
Objective-C
- (id)modifyVpnConnection:(nonnull AWSEC2ModifyVpnConnectionRequest *)request;Swift
func modifyVpnConnection(_ request: AWSEC2ModifyVpnConnectionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpnConnection service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVpnConnectionResult. -
Modifies the customer gateway or the target gateway of an Amazon Web Services Site-to-Site VPN connection. To modify the target gateway, the following migration options are available:
An existing virtual private gateway to a new virtual private gateway
An existing virtual private gateway to a transit gateway
An existing transit gateway to a new transit gateway
An existing transit gateway to a virtual private gateway
Before you perform the migration to the new gateway, you must configure the new gateway. Use CreateVpnGateway to create a virtual private gateway, or CreateTransitGateway to create a transit gateway.
This step is required when you migrate from a virtual private gateway with static routes to a transit gateway.
You must delete the static routes before you migrate to the new gateway.
Keep a copy of the static route before you delete it. You will need to add back these routes to the transit gateway after the VPN connection migration is complete.
After you migrate to the new gateway, you might need to modify your VPC route table. Use CreateRoute and DeleteRoute to make the changes described in Update VPC route tables in the Amazon Web Services Site-to-Site VPN User Guide.
When the new gateway is a transit gateway, modify the transit gateway route table to allow traffic between the VPC and the Amazon Web Services Site-to-Site VPN connection. Use CreateTransitGatewayRoute to add the routes.
If you deleted VPN static routes, you must add the static routes to the transit gateway route table.
After you perform this operation, the VPN endpoint’s IP addresses on the Amazon Web Services side and the tunnel options remain intact. Your Amazon Web Services Site-to-Site VPN connection will be temporarily unavailable for a brief period while we provision the new endpoints.
See
AWSEC2ModifyVpnConnectionRequest
See
AWSEC2ModifyVpnConnectionResult
Declaration
Objective-C
- (void)modifyVpnConnection:(nonnull AWSEC2ModifyVpnConnectionRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyVpnConnectionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVpnConnection(_ request: AWSEC2ModifyVpnConnectionRequest) async throws -> AWSEC2ModifyVpnConnectionResultParameters
requestA container for the necessary parameters to execute the ModifyVpnConnection service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the connection options for your Site-to-Site VPN connection.
When you modify the VPN connection options, the VPN endpoint IP addresses on the Amazon Web Services side do not change, and the tunnel options do not change. Your VPN connection will be temporarily unavailable for a brief period while the VPN connection is updated.
See
AWSEC2ModifyVpnConnectionOptionsRequest
See
AWSEC2ModifyVpnConnectionOptionsResult
Declaration
Objective-C
- (id)modifyVpnConnectionOptions: (nonnull AWSEC2ModifyVpnConnectionOptionsRequest *)request;Swift
func modifyVpnConnectionOptions(_ request: AWSEC2ModifyVpnConnectionOptionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpnConnectionOptions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVpnConnectionOptionsResult. -
Modifies the connection options for your Site-to-Site VPN connection.
When you modify the VPN connection options, the VPN endpoint IP addresses on the Amazon Web Services side do not change, and the tunnel options do not change. Your VPN connection will be temporarily unavailable for a brief period while the VPN connection is updated.
See
AWSEC2ModifyVpnConnectionOptionsRequest
See
AWSEC2ModifyVpnConnectionOptionsResult
Declaration
Objective-C
- (void)modifyVpnConnectionOptions: (nonnull AWSEC2ModifyVpnConnectionOptionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyVpnConnectionOptionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVpnConnectionOptions(_ request: AWSEC2ModifyVpnConnectionOptionsRequest) async throws -> AWSEC2ModifyVpnConnectionOptionsResultParameters
requestA container for the necessary parameters to execute the ModifyVpnConnectionOptions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the VPN tunnel endpoint certificate.
See
AWSEC2ModifyVpnTunnelCertificateRequest
See
AWSEC2ModifyVpnTunnelCertificateResult
Declaration
Objective-C
- (id)modifyVpnTunnelCertificate: (nonnull AWSEC2ModifyVpnTunnelCertificateRequest *)request;Swift
func modifyVpnTunnelCertificate(_ request: AWSEC2ModifyVpnTunnelCertificateRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpnTunnelCertificate service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVpnTunnelCertificateResult. -
Modifies the VPN tunnel endpoint certificate.
See
AWSEC2ModifyVpnTunnelCertificateRequest
See
AWSEC2ModifyVpnTunnelCertificateResult
Declaration
Objective-C
- (void)modifyVpnTunnelCertificate: (nonnull AWSEC2ModifyVpnTunnelCertificateRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ModifyVpnTunnelCertificateResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVpnTunnelCertificate(_ request: AWSEC2ModifyVpnTunnelCertificateRequest) async throws -> AWSEC2ModifyVpnTunnelCertificateResultParameters
requestA container for the necessary parameters to execute the ModifyVpnTunnelCertificate service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Modifies the options for a VPN tunnel in an Amazon Web Services Site-to-Site VPN connection. You can modify multiple options for a tunnel in a single request, but you can only modify one tunnel at a time. For more information, see Site-to-Site VPN tunnel options for your Site-to-Site VPN connection in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2ModifyVpnTunnelOptionsRequest
See
AWSEC2ModifyVpnTunnelOptionsResult
Declaration
Objective-C
- (id)modifyVpnTunnelOptions: (nonnull AWSEC2ModifyVpnTunnelOptionsRequest *)request;Swift
func modifyVpnTunnelOptions(_ request: AWSEC2ModifyVpnTunnelOptionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ModifyVpnTunnelOptions service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ModifyVpnTunnelOptionsResult. -
Modifies the options for a VPN tunnel in an Amazon Web Services Site-to-Site VPN connection. You can modify multiple options for a tunnel in a single request, but you can only modify one tunnel at a time. For more information, see Site-to-Site VPN tunnel options for your Site-to-Site VPN connection in the Amazon Web Services Site-to-Site VPN User Guide.
See
AWSEC2ModifyVpnTunnelOptionsRequest
See
AWSEC2ModifyVpnTunnelOptionsResult
Declaration
Objective-C
- (void) modifyVpnTunnelOptions: (nonnull AWSEC2ModifyVpnTunnelOptionsRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ModifyVpnTunnelOptionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func modifyVpnTunnelOptions(_ request: AWSEC2ModifyVpnTunnelOptionsRequest) async throws -> AWSEC2ModifyVpnTunnelOptionsResultParameters
requestA container for the necessary parameters to execute the ModifyVpnTunnelOptions service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitor your instances using CloudWatch in the Amazon EC2 User Guide.
To disable detailed monitoring, see UnmonitorInstances.
See
AWSEC2MonitorInstancesRequest
See
AWSEC2MonitorInstancesResult
Declaration
Objective-C
- (id)monitorInstances:(nonnull AWSEC2MonitorInstancesRequest *)request;Swift
func monitorInstances(_ request: AWSEC2MonitorInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the MonitorInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2MonitorInstancesResult. -
Enables detailed monitoring for a running instance. Otherwise, basic monitoring is enabled. For more information, see Monitor your instances using CloudWatch in the Amazon EC2 User Guide.
To disable detailed monitoring, see UnmonitorInstances.
See
AWSEC2MonitorInstancesRequest
See
AWSEC2MonitorInstancesResult
Declaration
Objective-C
- (void)monitorInstances:(nonnull AWSEC2MonitorInstancesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2MonitorInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func monitorInstances(_ request: AWSEC2MonitorInstancesRequest) async throws -> AWSEC2MonitorInstancesResultParameters
requestA container for the necessary parameters to execute the MonitorInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.
See
AWSEC2MoveAddressToVpcRequest
See
AWSEC2MoveAddressToVpcResult
Declaration
Objective-C
- (id)moveAddressToVpc:(nonnull AWSEC2MoveAddressToVpcRequest *)request;Swift
func moveAddress(toVpc request: AWSEC2MoveAddressToVpcRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the MoveAddressToVpc service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2MoveAddressToVpcResult. -
Moves an Elastic IP address from the EC2-Classic platform to the EC2-VPC platform. The Elastic IP address must be allocated to your account for more than 24 hours, and it must not be associated with an instance. After the Elastic IP address is moved, it is no longer available for use in the EC2-Classic platform, unless you move it back using the RestoreAddressToClassic request. You cannot move an Elastic IP address that was originally allocated for use in the EC2-VPC platform to the EC2-Classic platform.
See
AWSEC2MoveAddressToVpcRequest
See
AWSEC2MoveAddressToVpcResult
Declaration
Objective-C
- (void)moveAddressToVpc:(nonnull AWSEC2MoveAddressToVpcRequest *)request completionHandler: (void (^_Nullable)(AWSEC2MoveAddressToVpcResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func moveAddress(toVpc request: AWSEC2MoveAddressToVpcRequest) async throws -> AWSEC2MoveAddressToVpcResultParameters
requestA container for the necessary parameters to execute the MoveAddressToVpc service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Move an BYOIP IPv4 CIDR to IPAM from a public IPv4 pool.
If you already have an IPv4 BYOIP CIDR with Amazon Web Services, you can move the CIDR to IPAM from a public IPv4 pool. You cannot move an IPv6 CIDR to IPAM. If you are bringing a new IP address to Amazon Web Services for the first time, complete the steps in Tutorial: BYOIP address CIDRs to IPAM.
See
AWSEC2MoveByoipCidrToIpamRequest
See
AWSEC2MoveByoipCidrToIpamResult
Declaration
Objective-C
- (id)moveByoipCidrToIpam:(nonnull AWSEC2MoveByoipCidrToIpamRequest *)request;Swift
func moveByoipCidr(toIpam request: AWSEC2MoveByoipCidrToIpamRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the MoveByoipCidrToIpam service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2MoveByoipCidrToIpamResult. -
Move an BYOIP IPv4 CIDR to IPAM from a public IPv4 pool.
If you already have an IPv4 BYOIP CIDR with Amazon Web Services, you can move the CIDR to IPAM from a public IPv4 pool. You cannot move an IPv6 CIDR to IPAM. If you are bringing a new IP address to Amazon Web Services for the first time, complete the steps in Tutorial: BYOIP address CIDRs to IPAM.
See
AWSEC2MoveByoipCidrToIpamRequest
See
AWSEC2MoveByoipCidrToIpamResult
Declaration
Objective-C
- (void)moveByoipCidrToIpam:(nonnull AWSEC2MoveByoipCidrToIpamRequest *)request completionHandler: (void (^_Nullable)(AWSEC2MoveByoipCidrToIpamResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func moveByoipCidr(toIpam request: AWSEC2MoveByoipCidrToIpamRequest) async throws -> AWSEC2MoveByoipCidrToIpamResultParameters
requestA container for the necessary parameters to execute the MoveByoipCidrToIpam service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.
Amazon Web Services verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring your own IP addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.
Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from
pending-provisiontoprovisioned. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your IPv4 address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.See
AWSEC2ProvisionByoipCidrRequest
See
AWSEC2ProvisionByoipCidrResult
Declaration
Objective-C
- (id)provisionByoipCidr:(nonnull AWSEC2ProvisionByoipCidrRequest *)request;Swift
func provisionByoipCidr(_ request: AWSEC2ProvisionByoipCidrRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ProvisionByoipCidr service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ProvisionByoipCidrResult. -
Provisions an IPv4 or IPv6 address range for use with your Amazon Web Services resources through bring your own IP addresses (BYOIP) and creates a corresponding address pool. After the address range is provisioned, it is ready to be advertised using AdvertiseByoipCidr.
Amazon Web Services verifies that you own the address range and are authorized to advertise it. You must ensure that the address range is registered to you and that you created an RPKI ROA to authorize Amazon ASNs 16509 and 14618 to advertise the address range. For more information, see Bring your own IP addresses (BYOIP) in the Amazon Elastic Compute Cloud User Guide.
Provisioning an address range is an asynchronous operation, so the call returns immediately, but the address range is not ready to use until its status changes from
pending-provisiontoprovisioned. To monitor the status of an address range, use DescribeByoipCidrs. To allocate an Elastic IP address from your IPv4 address pool, use AllocateAddress with either the specific address from the address pool or the ID of the address pool.See
AWSEC2ProvisionByoipCidrRequest
See
AWSEC2ProvisionByoipCidrResult
Declaration
Objective-C
- (void)provisionByoipCidr:(nonnull AWSEC2ProvisionByoipCidrRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ProvisionByoipCidrResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func provisionByoipCidr(_ request: AWSEC2ProvisionByoipCidrRequest) async throws -> AWSEC2ProvisionByoipCidrResultParameters
requestA container for the necessary parameters to execute the ProvisionByoipCidr service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Provision a CIDR to an IPAM pool. You can use this action to provision new CIDRs to a top-level pool or to transfer a CIDR from a top-level pool to a pool within it.
For more information, see Provision CIDRs to pools in the Amazon VPC IPAM User Guide.
See
AWSEC2ProvisionIpamPoolCidrRequest
See
AWSEC2ProvisionIpamPoolCidrResult
Declaration
Objective-C
- (id)provisionIpamPoolCidr: (nonnull AWSEC2ProvisionIpamPoolCidrRequest *)request;Swift
func provisionIpamPoolCidr(_ request: AWSEC2ProvisionIpamPoolCidrRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ProvisionIpamPoolCidr service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ProvisionIpamPoolCidrResult. -
Provision a CIDR to an IPAM pool. You can use this action to provision new CIDRs to a top-level pool or to transfer a CIDR from a top-level pool to a pool within it.
For more information, see Provision CIDRs to pools in the Amazon VPC IPAM User Guide.
See
AWSEC2ProvisionIpamPoolCidrRequest
See
AWSEC2ProvisionIpamPoolCidrResult
Declaration
Objective-C
- (void)provisionIpamPoolCidr: (nonnull AWSEC2ProvisionIpamPoolCidrRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ProvisionIpamPoolCidrResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func provisionIpamPoolCidr(_ request: AWSEC2ProvisionIpamPoolCidrRequest) async throws -> AWSEC2ProvisionIpamPoolCidrResultParameters
requestA container for the necessary parameters to execute the ProvisionIpamPoolCidr service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Provision a CIDR to a public IPv4 pool.
For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
See
AWSEC2ProvisionPublicIpv4PoolCidrRequest
See
AWSEC2ProvisionPublicIpv4PoolCidrResult
Declaration
Objective-C
- (id)provisionPublicIpv4PoolCidr: (nonnull AWSEC2ProvisionPublicIpv4PoolCidrRequest *)request;Swift
func provisionPublicIpv4PoolCidr(_ request: AWSEC2ProvisionPublicIpv4PoolCidrRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ProvisionPublicIpv4PoolCidr service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ProvisionPublicIpv4PoolCidrResult. -
Provision a CIDR to a public IPv4 pool.
For more information about IPAM, see What is IPAM? in the Amazon VPC IPAM User Guide.
See
AWSEC2ProvisionPublicIpv4PoolCidrRequest
See
AWSEC2ProvisionPublicIpv4PoolCidrResult
Declaration
Objective-C
- (void)provisionPublicIpv4PoolCidr: (nonnull AWSEC2ProvisionPublicIpv4PoolCidrRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ProvisionPublicIpv4PoolCidrResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func provisionPublicIpv4PoolCidr(_ request: AWSEC2ProvisionPublicIpv4PoolCidrRequest) async throws -> AWSEC2ProvisionPublicIpv4PoolCidrResultParameters
requestA container for the necessary parameters to execute the ProvisionPublicIpv4PoolCidr service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account.
See
AWSEC2PurchaseHostReservationRequest
See
AWSEC2PurchaseHostReservationResult
Declaration
Objective-C
- (id)purchaseHostReservation: (nonnull AWSEC2PurchaseHostReservationRequest *)request;Swift
func purchaseHostReservation(_ request: AWSEC2PurchaseHostReservationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the PurchaseHostReservation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2PurchaseHostReservationResult. -
Purchase a reservation with configurations that match those of your Dedicated Host. You must have active Dedicated Hosts in your account before you purchase a reservation. This action results in the specified reservation being purchased and charged to your account.
See
AWSEC2PurchaseHostReservationRequest
See
AWSEC2PurchaseHostReservationResult
Declaration
Objective-C
- (void) purchaseHostReservation: (nonnull AWSEC2PurchaseHostReservationRequest *)request completionHandler: (void (^_Nullable)(AWSEC2PurchaseHostReservationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func purchaseHostReservation(_ request: AWSEC2PurchaseHostReservationRequest) async throws -> AWSEC2PurchaseHostReservationResultParameters
requestA container for the necessary parameters to execute the PurchaseHostReservation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.
Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you’ve purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.
To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.
For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon EC2 User Guide.
See
AWSEC2PurchaseReservedInstancesOfferingRequest
See
AWSEC2PurchaseReservedInstancesOfferingResult
Declaration
Objective-C
- (id)purchaseReservedInstancesOffering: (nonnull AWSEC2PurchaseReservedInstancesOfferingRequest *)request;Swift
func purchaseReservedInstancesOffering(_ request: AWSEC2PurchaseReservedInstancesOfferingRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the PurchaseReservedInstancesOffering service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2PurchaseReservedInstancesOfferingResult. -
Purchases a Reserved Instance for use with your account. With Reserved Instances, you pay a lower hourly rate compared to On-Demand instance pricing.
Use DescribeReservedInstancesOfferings to get a list of Reserved Instance offerings that match your specifications. After you’ve purchased a Reserved Instance, you can check for your new Reserved Instance with DescribeReservedInstances.
To queue a purchase for a future date and time, specify a purchase time. If you do not specify a purchase time, the default is the current time.
For more information, see Reserved Instances and Reserved Instance Marketplace in the Amazon EC2 User Guide.
See
AWSEC2PurchaseReservedInstancesOfferingRequest
See
AWSEC2PurchaseReservedInstancesOfferingResult
Declaration
Objective-C
- (void)purchaseReservedInstancesOffering: (nonnull AWSEC2PurchaseReservedInstancesOfferingRequest *)request completionHandler: (void (^_Nullable)( AWSEC2PurchaseReservedInstancesOfferingResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func purchaseReservedInstancesOffering(_ request: AWSEC2PurchaseReservedInstancesOfferingRequest) async throws -> AWSEC2PurchaseReservedInstancesOfferingResultParameters
requestA container for the necessary parameters to execute the PurchaseReservedInstancesOffering service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Purchases the Scheduled Instances with the specified schedule.
Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.
After you purchase a Scheduled Instance, you can’t cancel, modify, or resell your purchase.
See
AWSEC2PurchaseScheduledInstancesRequest
See
AWSEC2PurchaseScheduledInstancesResult
Declaration
Objective-C
- (id)purchaseScheduledInstances: (nonnull AWSEC2PurchaseScheduledInstancesRequest *)request;Swift
func purchaseScheduledInstances(_ request: AWSEC2PurchaseScheduledInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the PurchaseScheduledInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2PurchaseScheduledInstancesResult. -
Purchases the Scheduled Instances with the specified schedule.
Scheduled Instances enable you to purchase Amazon EC2 compute capacity by the hour for a one-year term. Before you can purchase a Scheduled Instance, you must call DescribeScheduledInstanceAvailability to check for available schedules and obtain a purchase token. After you purchase a Scheduled Instance, you must call RunScheduledInstances during each scheduled time period.
After you purchase a Scheduled Instance, you can’t cancel, modify, or resell your purchase.
See
AWSEC2PurchaseScheduledInstancesRequest
See
AWSEC2PurchaseScheduledInstancesResult
Declaration
Objective-C
- (void)purchaseScheduledInstances: (nonnull AWSEC2PurchaseScheduledInstancesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2PurchaseScheduledInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func purchaseScheduledInstances(_ request: AWSEC2PurchaseScheduledInstancesRequest) async throws -> AWSEC2PurchaseScheduledInstancesResultParameters
requestA container for the necessary parameters to execute the PurchaseScheduledInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.
If an instance does not cleanly shut down within a few minutes, Amazon EC2 performs a hard reboot.
For more information about troubleshooting, see Troubleshoot an unreachable instance in the Amazon EC2 User Guide.
See
AWSEC2RebootInstancesRequest
Declaration
Objective-C
- (id)rebootInstances:(nonnull AWSEC2RebootInstancesRequest *)request;Swift
func rebootInstances(_ request: AWSEC2RebootInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RebootInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Requests a reboot of the specified instances. This operation is asynchronous; it only queues a request to reboot the specified instances. The operation succeeds if the instances are valid and belong to you. Requests to reboot terminated instances are ignored.
If an instance does not cleanly shut down within a few minutes, Amazon EC2 performs a hard reboot.
For more information about troubleshooting, see Troubleshoot an unreachable instance in the Amazon EC2 User Guide.
See
AWSEC2RebootInstancesRequest
Declaration
Objective-C
- (void)rebootInstances:(nonnull AWSEC2RebootInstancesRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func rebootInstances(_ request: AWSEC2RebootInstancesRequest) async throwsParameters
requestA container for the necessary parameters to execute the RebootInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Registers an AMI. When you’re creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating your own AMIs in the Amazon Elastic Compute Cloud User Guide.
For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don’t have to register the AMI yourself.
If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.
Register a snapshot of a root device volume
You can use
RegisterImageto create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using a block device mapping. You can’t set the encryption state of the volume using the block device mapping. If the snapshot is encrypted, or encryption by default is enabled, the root volume of an instance launched from the AMI is encrypted.For more information, see Create a Linux AMI from a snapshot and Use encryption with Amazon EBS-backed AMIs in the Amazon Elastic Compute Cloud User Guide.
Amazon Web Services Marketplace product codes
If any snapshots have Amazon Web Services Marketplace product codes, they are copied to the new AMI.
Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the Amazon EC2 billing product code associated with an AMI to verify the subscription status for package updates. To create a new AMI for operating systems that require a billing product code, instead of registering the AMI, do the following to preserve the billing product code association:
Launch an instance from an existing AMI with that billing product code.
Customize the instance.
Create an AMI from the instance using CreateImage.
If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched from an AMI with a billing product code, make sure that the Reserved Instance has the matching billing product code. If you purchase a Reserved Instance without the matching billing product code, the Reserved Instance will not be applied to the On-Demand Instance. For information about how to obtain the platform details and billing information of an AMI, see Understanding AMI billing in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2RegisterImageRequest
See
AWSEC2RegisterImageResult
Declaration
Objective-C
- (id)registerImage:(nonnull AWSEC2RegisterImageRequest *)request;Swift
func registerImage(_ request: AWSEC2RegisterImageRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RegisterImage service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RegisterImageResult. -
Registers an AMI. When you’re creating an AMI, this is the final step you must complete before you can launch an instance from the AMI. For more information about creating AMIs, see Creating your own AMIs in the Amazon Elastic Compute Cloud User Guide.
For Amazon EBS-backed instances, CreateImage creates and registers the AMI in a single request, so you don’t have to register the AMI yourself.
If needed, you can deregister an AMI at any time. Any modifications you make to an AMI backed by an instance store volume invalidates its registration. If you make changes to an image, deregister the previous image and register the new image.
Register a snapshot of a root device volume
You can use
RegisterImageto create an Amazon EBS-backed Linux AMI from a snapshot of a root device volume. You specify the snapshot using a block device mapping. You can’t set the encryption state of the volume using the block device mapping. If the snapshot is encrypted, or encryption by default is enabled, the root volume of an instance launched from the AMI is encrypted.For more information, see Create a Linux AMI from a snapshot and Use encryption with Amazon EBS-backed AMIs in the Amazon Elastic Compute Cloud User Guide.
Amazon Web Services Marketplace product codes
If any snapshots have Amazon Web Services Marketplace product codes, they are copied to the new AMI.
Windows and some Linux distributions, such as Red Hat Enterprise Linux (RHEL) and SUSE Linux Enterprise Server (SLES), use the Amazon EC2 billing product code associated with an AMI to verify the subscription status for package updates. To create a new AMI for operating systems that require a billing product code, instead of registering the AMI, do the following to preserve the billing product code association:
Launch an instance from an existing AMI with that billing product code.
Customize the instance.
Create an AMI from the instance using CreateImage.
If you purchase a Reserved Instance to apply to an On-Demand Instance that was launched from an AMI with a billing product code, make sure that the Reserved Instance has the matching billing product code. If you purchase a Reserved Instance without the matching billing product code, the Reserved Instance will not be applied to the On-Demand Instance. For information about how to obtain the platform details and billing information of an AMI, see Understanding AMI billing in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2RegisterImageRequest
See
AWSEC2RegisterImageResult
Declaration
Objective-C
- (void)registerImage:(nonnull AWSEC2RegisterImageRequest *)request completionHandler:(void (^_Nullable)(AWSEC2RegisterImageResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func registerImage(_ request: AWSEC2RegisterImageRequest) async throws -> AWSEC2RegisterImageResultParameters
requestA container for the necessary parameters to execute the RegisterImage service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Registers a set of tag keys to include in scheduled event notifications for your resources.
To remove tags, use DeregisterInstanceEventNotificationAttributes.
See
AWSEC2RegisterInstanceEventNotificationAttributesRequest
See
AWSEC2RegisterInstanceEventNotificationAttributesResult
Declaration
Objective-C
- (id)registerInstanceEventNotificationAttributes: (nonnull AWSEC2RegisterInstanceEventNotificationAttributesRequest *)request;Swift
func registerInstanceEventNotificationAttributes(_ request: AWSEC2RegisterInstanceEventNotificationAttributesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RegisterInstanceEventNotificationAttributes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RegisterInstanceEventNotificationAttributesResult. -
Registers a set of tag keys to include in scheduled event notifications for your resources.
To remove tags, use DeregisterInstanceEventNotificationAttributes.
See
AWSEC2RegisterInstanceEventNotificationAttributesRequest
See
AWSEC2RegisterInstanceEventNotificationAttributesResult
Declaration
Objective-C
- (void) registerInstanceEventNotificationAttributes: (nonnull AWSEC2RegisterInstanceEventNotificationAttributesRequest *) request completionHandler: (void (^_Nullable)( AWSEC2RegisterInstanceEventNotificationAttributesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func registerInstanceEventNotificationAttributes(_ request: AWSEC2RegisterInstanceEventNotificationAttributesRequest) async throws -> AWSEC2RegisterInstanceEventNotificationAttributesResultParameters
requestA container for the necessary parameters to execute the RegisterInstanceEventNotificationAttributes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface associated with a supported EC2 instance that receives multicast traffic. For information about supported instances, see Multicast Consideration in Amazon VPC Transit Gateways.
After you add the members, use SearchTransitGatewayMulticastGroups to verify that the members were added to the transit gateway multicast group.
See
AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest
See
AWSEC2RegisterTransitGatewayMulticastGroupMembersResult
Declaration
Objective-C
- (id)registerTransitGatewayMulticastGroupMembers: (nonnull AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest *)request;Swift
func registerTransitGatewayMulticastGroupMembers(_ request: AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RegisterTransitGatewayMulticastGroupMembers service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RegisterTransitGatewayMulticastGroupMembersResult. -
Registers members (network interfaces) with the transit gateway multicast group. A member is a network interface associated with a supported EC2 instance that receives multicast traffic. For information about supported instances, see Multicast Consideration in Amazon VPC Transit Gateways.
After you add the members, use SearchTransitGatewayMulticastGroups to verify that the members were added to the transit gateway multicast group.
See
AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest
See
AWSEC2RegisterTransitGatewayMulticastGroupMembersResult
Declaration
Objective-C
- (void) registerTransitGatewayMulticastGroupMembers: (nonnull AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest *) request completionHandler: (void (^_Nullable)( AWSEC2RegisterTransitGatewayMulticastGroupMembersResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func registerTransitGatewayMulticastGroupMembers(_ request: AWSEC2RegisterTransitGatewayMulticastGroupMembersRequest) async throws -> AWSEC2RegisterTransitGatewayMulticastGroupMembersResultParameters
requestA container for the necessary parameters to execute the RegisterTransitGatewayMulticastGroupMembers service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Registers sources (network interfaces) with the specified transit gateway multicast group.
A multicast source is a network interface attached to a supported instance that sends multicast traffic. For information about supported instances, see Multicast Considerations in Amazon VPC Transit Gateways.
After you add the source, use SearchTransitGatewayMulticastGroups to verify that the source was added to the multicast group.
See
AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest
See
AWSEC2RegisterTransitGatewayMulticastGroupSourcesResult
Declaration
Objective-C
- (id)registerTransitGatewayMulticastGroupSources: (nonnull AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest *)request;Swift
func registerTransitGatewayMulticastGroupSources(_ request: AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RegisterTransitGatewayMulticastGroupSources service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RegisterTransitGatewayMulticastGroupSourcesResult. -
Registers sources (network interfaces) with the specified transit gateway multicast group.
A multicast source is a network interface attached to a supported instance that sends multicast traffic. For information about supported instances, see Multicast Considerations in Amazon VPC Transit Gateways.
After you add the source, use SearchTransitGatewayMulticastGroups to verify that the source was added to the multicast group.
See
AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest
See
AWSEC2RegisterTransitGatewayMulticastGroupSourcesResult
Declaration
Objective-C
- (void) registerTransitGatewayMulticastGroupSources: (nonnull AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest *) request completionHandler: (void (^_Nullable)( AWSEC2RegisterTransitGatewayMulticastGroupSourcesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func registerTransitGatewayMulticastGroupSources(_ request: AWSEC2RegisterTransitGatewayMulticastGroupSourcesRequest) async throws -> AWSEC2RegisterTransitGatewayMulticastGroupSourcesResultParameters
requestA container for the necessary parameters to execute the RegisterTransitGatewayMulticastGroupSources service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Rejects a request to associate cross-account subnets with a transit gateway multicast domain.
See
AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest
See
AWSEC2RejectTransitGatewayMulticastDomainAssociationsResult
Declaration
Objective-C
- (id)rejectTransitGatewayMulticastDomainAssociations: (nonnull AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest *) request;Swift
func rejectTransitGatewayMulticastDomainAssociations(_ request: AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RejectTransitGatewayMulticastDomainAssociations service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RejectTransitGatewayMulticastDomainAssociationsResult. -
Rejects a request to associate cross-account subnets with a transit gateway multicast domain.
See
AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest
See
AWSEC2RejectTransitGatewayMulticastDomainAssociationsResult
Declaration
Objective-C
- (void) rejectTransitGatewayMulticastDomainAssociations: (nonnull AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest *) request completionHandler: (void (^_Nullable)( AWSEC2RejectTransitGatewayMulticastDomainAssociationsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func rejectTransitGatewayMulticastDomainAssociations(_ request: AWSEC2RejectTransitGatewayMulticastDomainAssociationsRequest) async throws -> AWSEC2RejectTransitGatewayMulticastDomainAssociationsResultParameters
requestA container for the necessary parameters to execute the RejectTransitGatewayMulticastDomainAssociations service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Rejects a transit gateway peering attachment request.
See
AWSEC2RejectTransitGatewayPeeringAttachmentRequest
See
AWSEC2RejectTransitGatewayPeeringAttachmentResult
Declaration
Objective-C
- (id)rejectTransitGatewayPeeringAttachment: (nonnull AWSEC2RejectTransitGatewayPeeringAttachmentRequest *)request;Swift
func rejectTransitGatewayPeeringAttachment(_ request: AWSEC2RejectTransitGatewayPeeringAttachmentRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RejectTransitGatewayPeeringAttachment service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RejectTransitGatewayPeeringAttachmentResult. -
Rejects a transit gateway peering attachment request.
See
AWSEC2RejectTransitGatewayPeeringAttachmentRequest
See
AWSEC2RejectTransitGatewayPeeringAttachmentResult
Declaration
Objective-C
- (void) rejectTransitGatewayPeeringAttachment: (nonnull AWSEC2RejectTransitGatewayPeeringAttachmentRequest *)request completionHandler: (void (^_Nullable)( AWSEC2RejectTransitGatewayPeeringAttachmentResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func rejectTransitGatewayPeeringAttachment(_ request: AWSEC2RejectTransitGatewayPeeringAttachmentRequest) async throws -> AWSEC2RejectTransitGatewayPeeringAttachmentResultParameters
requestA container for the necessary parameters to execute the RejectTransitGatewayPeeringAttachment service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Rejects a request to attach a VPC to a transit gateway.
The VPC attachment must be in the
pendingAcceptancestate. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.See
AWSEC2RejectTransitGatewayVpcAttachmentRequest
See
AWSEC2RejectTransitGatewayVpcAttachmentResult
Declaration
Objective-C
- (id)rejectTransitGatewayVpcAttachment: (nonnull AWSEC2RejectTransitGatewayVpcAttachmentRequest *)request;Swift
func rejectTransitGatewayVpcAttachment(_ request: AWSEC2RejectTransitGatewayVpcAttachmentRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RejectTransitGatewayVpcAttachment service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RejectTransitGatewayVpcAttachmentResult. -
Rejects a request to attach a VPC to a transit gateway.
The VPC attachment must be in the
pendingAcceptancestate. Use DescribeTransitGatewayVpcAttachments to view your pending VPC attachment requests. Use AcceptTransitGatewayVpcAttachment to accept a VPC attachment request.See
AWSEC2RejectTransitGatewayVpcAttachmentRequest
See
AWSEC2RejectTransitGatewayVpcAttachmentResult
Declaration
Objective-C
- (void)rejectTransitGatewayVpcAttachment: (nonnull AWSEC2RejectTransitGatewayVpcAttachmentRequest *)request completionHandler: (void (^_Nullable)( AWSEC2RejectTransitGatewayVpcAttachmentResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func rejectTransitGatewayVpcAttachment(_ request: AWSEC2RejectTransitGatewayVpcAttachmentRequest) async throws -> AWSEC2RejectTransitGatewayVpcAttachmentResultParameters
requestA container for the necessary parameters to execute the RejectTransitGatewayVpcAttachment service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Rejects one or more VPC endpoint connection requests to your VPC endpoint service.
See
AWSEC2RejectVpcEndpointConnectionsRequest
See
AWSEC2RejectVpcEndpointConnectionsResult
Declaration
Objective-C
- (id)rejectVpcEndpointConnections: (nonnull AWSEC2RejectVpcEndpointConnectionsRequest *)request;Swift
func rejectVpcEndpointConnections(_ request: AWSEC2RejectVpcEndpointConnectionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RejectVpcEndpointConnections service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RejectVpcEndpointConnectionsResult. -
Rejects one or more VPC endpoint connection requests to your VPC endpoint service.
See
AWSEC2RejectVpcEndpointConnectionsRequest
See
AWSEC2RejectVpcEndpointConnectionsResult
Declaration
Objective-C
- (void)rejectVpcEndpointConnections: (nonnull AWSEC2RejectVpcEndpointConnectionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2RejectVpcEndpointConnectionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func rejectVpcEndpointConnections(_ request: AWSEC2RejectVpcEndpointConnectionsRequest) async throws -> AWSEC2RejectVpcEndpointConnectionsResultParameters
requestA container for the necessary parameters to execute the RejectVpcEndpointConnections service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Rejects a VPC peering connection request. The VPC peering connection must be in the
pending-acceptancestate. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.See
AWSEC2RejectVpcPeeringConnectionRequest
See
AWSEC2RejectVpcPeeringConnectionResult
Declaration
Objective-C
- (id)rejectVpcPeeringConnection: (nonnull AWSEC2RejectVpcPeeringConnectionRequest *)request;Swift
func rejectVpcPeeringConnection(_ request: AWSEC2RejectVpcPeeringConnectionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RejectVpcPeeringConnection service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RejectVpcPeeringConnectionResult. -
Rejects a VPC peering connection request. The VPC peering connection must be in the
pending-acceptancestate. Use the DescribeVpcPeeringConnections request to view your outstanding VPC peering connection requests. To delete an active VPC peering connection, or to delete a VPC peering connection request that you initiated, use DeleteVpcPeeringConnection.See
AWSEC2RejectVpcPeeringConnectionRequest
See
AWSEC2RejectVpcPeeringConnectionResult
Declaration
Objective-C
- (void)rejectVpcPeeringConnection: (nonnull AWSEC2RejectVpcPeeringConnectionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2RejectVpcPeeringConnectionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func rejectVpcPeeringConnection(_ request: AWSEC2RejectVpcPeeringConnectionRequest) async throws -> AWSEC2RejectVpcPeeringConnectionResultParameters
requestA container for the necessary parameters to execute the RejectVpcPeeringConnection service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Releases the specified Elastic IP address.
[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it’s associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.
[Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before you can release it. Otherwise, Amazon EC2 returns an error (
InvalidIPAddress.InUse).After releasing an Elastic IP address, it is released to the IP address pool. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you’ll get an
AuthFailureerror if the address is already allocated to another Amazon Web Services account.[EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it. For more information, see AllocateAddress.
See
AWSEC2ReleaseAddressRequest
Declaration
Objective-C
- (id)releaseAddress:(nonnull AWSEC2ReleaseAddressRequest *)request;Swift
func releaseAddress(_ request: AWSEC2ReleaseAddressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ReleaseAddress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Releases the specified Elastic IP address.
[EC2-Classic, default VPC] Releasing an Elastic IP address automatically disassociates it from any instance that it’s associated with. To disassociate an Elastic IP address without releasing it, use DisassociateAddress.
[Nondefault VPC] You must use DisassociateAddress to disassociate the Elastic IP address before you can release it. Otherwise, Amazon EC2 returns an error (
InvalidIPAddress.InUse).After releasing an Elastic IP address, it is released to the IP address pool. Be sure to update your DNS records and any servers or devices that communicate with the address. If you attempt to release an Elastic IP address that you already released, you’ll get an
AuthFailureerror if the address is already allocated to another Amazon Web Services account.[EC2-VPC] After you release an Elastic IP address for use in a VPC, you might be able to recover it. For more information, see AllocateAddress.
See
AWSEC2ReleaseAddressRequest
Declaration
Objective-C
- (void)releaseAddress:(nonnull AWSEC2ReleaseAddressRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func releaseAddress(_ request: AWSEC2ReleaseAddressRequest) async throwsParameters
requestA container for the necessary parameters to execute the ReleaseAddress service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into
releasedstate. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.
Released hosts still appear in a DescribeHosts response.
See
AWSEC2ReleaseHostsRequest
See
AWSEC2ReleaseHostsResult
Declaration
Objective-C
- (id)releaseHosts:(nonnull AWSEC2ReleaseHostsRequest *)request;Swift
func releaseHosts(_ request: AWSEC2ReleaseHostsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ReleaseHosts service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ReleaseHostsResult. -
When you no longer want to use an On-Demand Dedicated Host it can be released. On-Demand billing is stopped and the host goes into
releasedstate. The host ID of Dedicated Hosts that have been released can no longer be specified in another request, for example, to modify the host. You must stop or terminate all instances on a host before it can be released.When Dedicated Hosts are released, it may take some time for them to stop counting toward your limit and you may receive capacity errors when trying to allocate new Dedicated Hosts. Wait a few minutes and then try again.
Released hosts still appear in a DescribeHosts response.
See
AWSEC2ReleaseHostsRequest
See
AWSEC2ReleaseHostsResult
Declaration
Objective-C
- (void)releaseHosts:(nonnull AWSEC2ReleaseHostsRequest *)request completionHandler:(void (^_Nullable)(AWSEC2ReleaseHostsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func releaseHosts(_ request: AWSEC2ReleaseHostsRequest) async throws -> AWSEC2ReleaseHostsResultParameters
requestA container for the necessary parameters to execute the ReleaseHosts service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Release an allocation within an IPAM pool. You can only use this action to release manual allocations. To remove an allocation for a resource without deleting the resource, set its monitored state to false using ModifyIpamResourceCidr. For more information, see Release an allocation in the Amazon VPC IPAM User Guide.
See
AWSEC2ReleaseIpamPoolAllocationRequest
See
AWSEC2ReleaseIpamPoolAllocationResult
Declaration
Objective-C
- (id)releaseIpamPoolAllocation: (nonnull AWSEC2ReleaseIpamPoolAllocationRequest *)request;Swift
func releaseIpamPoolAllocation(_ request: AWSEC2ReleaseIpamPoolAllocationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ReleaseIpamPoolAllocation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ReleaseIpamPoolAllocationResult. -
Release an allocation within an IPAM pool. You can only use this action to release manual allocations. To remove an allocation for a resource without deleting the resource, set its monitored state to false using ModifyIpamResourceCidr. For more information, see Release an allocation in the Amazon VPC IPAM User Guide.
See
AWSEC2ReleaseIpamPoolAllocationRequest
See
AWSEC2ReleaseIpamPoolAllocationResult
Declaration
Objective-C
- (void)releaseIpamPoolAllocation: (nonnull AWSEC2ReleaseIpamPoolAllocationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ReleaseIpamPoolAllocationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func releaseIpamPoolAllocation(_ request: AWSEC2ReleaseIpamPoolAllocationRequest) async throws -> AWSEC2ReleaseIpamPoolAllocationResultParameters
requestA container for the necessary parameters to execute the ReleaseIpamPoolAllocation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that’s associated with an instance without having to disassociate the existing IAM instance profile first.
Use DescribeIamInstanceProfileAssociations to get the association ID.
See
AWSEC2ReplaceIamInstanceProfileAssociationRequest
See
AWSEC2ReplaceIamInstanceProfileAssociationResult
Declaration
Objective-C
- (id)replaceIamInstanceProfileAssociation: (nonnull AWSEC2ReplaceIamInstanceProfileAssociationRequest *)request;Swift
func replaceIamInstanceProfileAssociation(_ request: AWSEC2ReplaceIamInstanceProfileAssociationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ReplaceIamInstanceProfileAssociation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ReplaceIamInstanceProfileAssociationResult. -
Replaces an IAM instance profile for the specified running instance. You can use this action to change the IAM instance profile that’s associated with an instance without having to disassociate the existing IAM instance profile first.
Use DescribeIamInstanceProfileAssociations to get the association ID.
See
AWSEC2ReplaceIamInstanceProfileAssociationRequest
See
AWSEC2ReplaceIamInstanceProfileAssociationResult
Declaration
Objective-C
- (void) replaceIamInstanceProfileAssociation: (nonnull AWSEC2ReplaceIamInstanceProfileAssociationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ReplaceIamInstanceProfileAssociationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func replaceIamInstanceProfileAssociation(_ request: AWSEC2ReplaceIamInstanceProfileAssociationRequest) async throws -> AWSEC2ReplaceIamInstanceProfileAssociationResultParameters
requestA container for the necessary parameters to execute the ReplaceIamInstanceProfileAssociation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Changes which network ACL a subnet is associated with. By default when you create a subnet, it’s automatically associated with the default network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
This is an idempotent operation.
See
AWSEC2ReplaceNetworkAclAssociationRequest
See
AWSEC2ReplaceNetworkAclAssociationResult
Declaration
Objective-C
- (id)replaceNetworkAclAssociation: (nonnull AWSEC2ReplaceNetworkAclAssociationRequest *)request;Swift
func replaceNetworkAclAssociation(_ request: AWSEC2ReplaceNetworkAclAssociationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ReplaceNetworkAclAssociation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ReplaceNetworkAclAssociationResult. -
Changes which network ACL a subnet is associated with. By default when you create a subnet, it’s automatically associated with the default network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
This is an idempotent operation.
See
AWSEC2ReplaceNetworkAclAssociationRequest
See
AWSEC2ReplaceNetworkAclAssociationResult
Declaration
Objective-C
- (void)replaceNetworkAclAssociation: (nonnull AWSEC2ReplaceNetworkAclAssociationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ReplaceNetworkAclAssociationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func replaceNetworkAclAssociation(_ request: AWSEC2ReplaceNetworkAclAssociationRequest) async throws -> AWSEC2ReplaceNetworkAclAssociationResultParameters
requestA container for the necessary parameters to execute the ReplaceNetworkAclAssociation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Replaces an entry (rule) in a network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2ReplaceNetworkAclEntryRequest
Declaration
Objective-C
- (id)replaceNetworkAclEntry: (nonnull AWSEC2ReplaceNetworkAclEntryRequest *)request;Swift
func replaceNetworkAclEntry(_ request: AWSEC2ReplaceNetworkAclEntryRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ReplaceNetworkAclEntry service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Replaces an entry (rule) in a network ACL. For more information, see Network ACLs in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2ReplaceNetworkAclEntryRequest
Declaration
Objective-C
- (void)replaceNetworkAclEntry: (nonnull AWSEC2ReplaceNetworkAclEntryRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func replaceNetworkAclEntry(_ request: AWSEC2ReplaceNetworkAclEntryRequest) async throwsParameters
requestA container for the necessary parameters to execute the ReplaceNetworkAclEntry service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Replaces an existing route within a route table in a VPC. You must provide only one of the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.
For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2ReplaceRouteRequest
Declaration
Objective-C
- (id)replaceRoute:(nonnull AWSEC2ReplaceRouteRequest *)request;Swift
func replaceRoute(_ request: AWSEC2ReplaceRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ReplaceRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Replaces an existing route within a route table in a VPC. You must provide only one of the following: internet gateway, virtual private gateway, NAT instance, NAT gateway, VPC peering connection, network interface, egress-only internet gateway, or transit gateway.
For more information, see Route tables in the Amazon Virtual Private Cloud User Guide.
See
AWSEC2ReplaceRouteRequest
Declaration
Objective-C
- (void)replaceRoute:(nonnull AWSEC2ReplaceRouteRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func replaceRoute(_ request: AWSEC2ReplaceRouteRequest) async throwsParameters
requestA container for the necessary parameters to execute the ReplaceRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route tables in the Amazon Virtual Private Cloud User Guide.
You can also use this operation to change which table is the main route table in the VPC. Specify the main route table’s association ID and the route table ID of the new main route table.
See
AWSEC2ReplaceRouteTableAssociationRequest
See
AWSEC2ReplaceRouteTableAssociationResult
Declaration
Objective-C
- (id)replaceRouteTableAssociation: (nonnull AWSEC2ReplaceRouteTableAssociationRequest *)request;Swift
func replaceRouteTableAssociation(_ request: AWSEC2ReplaceRouteTableAssociationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ReplaceRouteTableAssociation service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ReplaceRouteTableAssociationResult. -
Changes the route table associated with a given subnet, internet gateway, or virtual private gateway in a VPC. After the operation completes, the subnet or gateway uses the routes in the new route table. For more information about route tables, see Route tables in the Amazon Virtual Private Cloud User Guide.
You can also use this operation to change which table is the main route table in the VPC. Specify the main route table’s association ID and the route table ID of the new main route table.
See
AWSEC2ReplaceRouteTableAssociationRequest
See
AWSEC2ReplaceRouteTableAssociationResult
Declaration
Objective-C
- (void)replaceRouteTableAssociation: (nonnull AWSEC2ReplaceRouteTableAssociationRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ReplaceRouteTableAssociationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func replaceRouteTableAssociation(_ request: AWSEC2ReplaceRouteTableAssociationRequest) async throws -> AWSEC2ReplaceRouteTableAssociationResultParameters
requestA container for the necessary parameters to execute the ReplaceRouteTableAssociation service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Replaces the specified route in the specified transit gateway route table.
See
AWSEC2ReplaceTransitGatewayRouteRequest
See
AWSEC2ReplaceTransitGatewayRouteResult
Declaration
Objective-C
- (id)replaceTransitGatewayRoute: (nonnull AWSEC2ReplaceTransitGatewayRouteRequest *)request;Swift
func replaceTransitGatewayRoute(_ request: AWSEC2ReplaceTransitGatewayRouteRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ReplaceTransitGatewayRoute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ReplaceTransitGatewayRouteResult. -
Replaces the specified route in the specified transit gateway route table.
See
AWSEC2ReplaceTransitGatewayRouteRequest
See
AWSEC2ReplaceTransitGatewayRouteResult
Declaration
Objective-C
- (void)replaceTransitGatewayRoute: (nonnull AWSEC2ReplaceTransitGatewayRouteRequest *)request completionHandler: (void (^_Nullable)( AWSEC2ReplaceTransitGatewayRouteResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func replaceTransitGatewayRoute(_ request: AWSEC2ReplaceTransitGatewayRouteRequest) async throws -> AWSEC2ReplaceTransitGatewayRouteResultParameters
requestA container for the necessary parameters to execute the ReplaceTransitGatewayRoute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Submits feedback about the status of an instance. The instance must be in the
runningstate. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.Use of this action does not change the value returned by DescribeInstanceStatus.
See
AWSEC2ReportInstanceStatusRequest
Declaration
Objective-C
- (id)reportInstanceStatus:(nonnull AWSEC2ReportInstanceStatusRequest *)request;Swift
func reportInstanceStatus(_ request: AWSEC2ReportInstanceStatusRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ReportInstanceStatus service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Submits feedback about the status of an instance. The instance must be in the
runningstate. If your experience with the instance differs from the instance status returned by DescribeInstanceStatus, use ReportInstanceStatus to report your experience with the instance. Amazon EC2 collects this information to improve the accuracy of status checks.Use of this action does not change the value returned by DescribeInstanceStatus.
See
AWSEC2ReportInstanceStatusRequest
Declaration
Objective-C
- (void)reportInstanceStatus: (nonnull AWSEC2ReportInstanceStatusRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func reportInstanceStatus(_ request: AWSEC2ReportInstanceStatusRequest) async throwsParameters
requestA container for the necessary parameters to execute the ReportInstanceStatus service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a Spot Fleet request.
The Spot Fleet request specifies the total target capacity and the On-Demand target capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand capacity, and launches the difference as Spot capacity.
You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.
By default, the Spot Fleet requests Spot Instances in the Spot Instance pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.
Alternatively, you can specify that the Spot Fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot Instances in your Spot Fleet are in different Spot pools, you can improve the availability of your fleet.
You can specify tags for the Spot Fleet request and instances launched by the fleet. You cannot tag other resource types in a Spot Fleet request because only the
spot-fleet-requestandinstanceresource types are supported.For more information, see Spot Fleet requests in the Amazon EC2 User Guide for Linux Instances.
We strongly discourage using the RequestSpotFleet API because it is a legacy API with no planned investment. For options for requesting Spot Instances, see Which is the best Spot request method to use? in the Amazon EC2 User Guide for Linux Instances.
See
AWSEC2RequestSpotFleetRequest
See
AWSEC2RequestSpotFleetResponse
Declaration
Objective-C
- (id)requestSpotFleet:(nonnull AWSEC2RequestSpotFleetRequest *)request;Swift
func requestSpotFleet(_ request: AWSEC2RequestSpotFleetRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RequestSpotFleet service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RequestSpotFleetResponse. -
Creates a Spot Fleet request.
The Spot Fleet request specifies the total target capacity and the On-Demand target capacity. Amazon EC2 calculates the difference between the total capacity and On-Demand capacity, and launches the difference as Spot capacity.
You can submit a single request that includes multiple launch specifications that vary by instance type, AMI, Availability Zone, or subnet.
By default, the Spot Fleet requests Spot Instances in the Spot Instance pool where the price per unit is the lowest. Each launch specification can include its own instance weighting that reflects the value of the instance type to your application workload.
Alternatively, you can specify that the Spot Fleet distribute the target capacity across the Spot pools included in its launch specifications. By ensuring that the Spot Instances in your Spot Fleet are in different Spot pools, you can improve the availability of your fleet.
You can specify tags for the Spot Fleet request and instances launched by the fleet. You cannot tag other resource types in a Spot Fleet request because only the
spot-fleet-requestandinstanceresource types are supported.For more information, see Spot Fleet requests in the Amazon EC2 User Guide for Linux Instances.
We strongly discourage using the RequestSpotFleet API because it is a legacy API with no planned investment. For options for requesting Spot Instances, see Which is the best Spot request method to use? in the Amazon EC2 User Guide for Linux Instances.
See
AWSEC2RequestSpotFleetRequest
See
AWSEC2RequestSpotFleetResponse
Declaration
Objective-C
- (void)requestSpotFleet:(nonnull AWSEC2RequestSpotFleetRequest *)request completionHandler: (void (^_Nullable)(AWSEC2RequestSpotFleetResponse *_Nullable, NSError *_Nullable))completionHandler;Swift
func requestSpotFleet(_ request: AWSEC2RequestSpotFleetRequest) async throws -> AWSEC2RequestSpotFleetResponseParameters
requestA container for the necessary parameters to execute the RequestSpotFleet service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Creates a Spot Instance request.
For more information, see Spot Instance requests in the Amazon EC2 User Guide for Linux Instances.
We strongly discourage using the RequestSpotInstances API because it is a legacy API with no planned investment. For options for requesting Spot Instances, see Which is the best Spot request method to use? in the Amazon EC2 User Guide for Linux Instances.
See
AWSEC2RequestSpotInstancesRequest
See
AWSEC2RequestSpotInstancesResult
Declaration
Objective-C
- (id)requestSpotInstances:(nonnull AWSEC2RequestSpotInstancesRequest *)request;Swift
func requestSpotInstances(_ request: AWSEC2RequestSpotInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RequestSpotInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RequestSpotInstancesResult. -
Creates a Spot Instance request.
For more information, see Spot Instance requests in the Amazon EC2 User Guide for Linux Instances.
We strongly discourage using the RequestSpotInstances API because it is a legacy API with no planned investment. For options for requesting Spot Instances, see Which is the best Spot request method to use? in the Amazon EC2 User Guide for Linux Instances.
See
AWSEC2RequestSpotInstancesRequest
See
AWSEC2RequestSpotInstancesResult
Declaration
Objective-C
- (void)requestSpotInstances: (nonnull AWSEC2RequestSpotInstancesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2RequestSpotInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func requestSpotInstances(_ request: AWSEC2RequestSpotInstancesRequest) async throws -> AWSEC2RequestSpotInstancesResultParameters
requestA container for the necessary parameters to execute the RequestSpotInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Resets the attribute of the specified IP address. For requirements, see Using reverse DNS for email applications.
See
AWSEC2ResetAddressAttributeRequest
See
AWSEC2ResetAddressAttributeResult
Declaration
Objective-C
- (id)resetAddressAttribute: (nonnull AWSEC2ResetAddressAttributeRequest *)request;Swift
func resetAddressAttribute(_ request: AWSEC2ResetAddressAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ResetAddressAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ResetAddressAttributeResult. -
Resets the attribute of the specified IP address. For requirements, see Using reverse DNS for email applications.
See
AWSEC2ResetAddressAttributeRequest
See
AWSEC2ResetAddressAttributeResult
Declaration
Objective-C
- (void)resetAddressAttribute: (nonnull AWSEC2ResetAddressAttributeRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ResetAddressAttributeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func resetAddressAttribute(_ request: AWSEC2ResetAddressAttributeRequest) async throws -> AWSEC2ResetAddressAttributeResultParameters
requestA container for the necessary parameters to execute the ResetAddressAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Resets the default KMS key for EBS encryption for your account in this Region to the Amazon Web Services managed KMS key for EBS.
After resetting the default KMS key to the Amazon Web Services managed KMS key, you can continue to encrypt by a customer managed KMS key by specifying it when you create the volume. For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ResetEbsDefaultKmsKeyIdRequest
See
AWSEC2ResetEbsDefaultKmsKeyIdResult
Declaration
Objective-C
- (id)resetEbsDefaultKmsKeyId: (nonnull AWSEC2ResetEbsDefaultKmsKeyIdRequest *)request;Swift
func resetEbsDefaultKmsKeyId(_ request: AWSEC2ResetEbsDefaultKmsKeyIdRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ResetEbsDefaultKmsKeyId service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ResetEbsDefaultKmsKeyIdResult. -
Resets the default KMS key for EBS encryption for your account in this Region to the Amazon Web Services managed KMS key for EBS.
After resetting the default KMS key to the Amazon Web Services managed KMS key, you can continue to encrypt by a customer managed KMS key by specifying it when you create the volume. For more information, see Amazon EBS encryption in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ResetEbsDefaultKmsKeyIdRequest
See
AWSEC2ResetEbsDefaultKmsKeyIdResult
Declaration
Objective-C
- (void) resetEbsDefaultKmsKeyId: (nonnull AWSEC2ResetEbsDefaultKmsKeyIdRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ResetEbsDefaultKmsKeyIdResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func resetEbsDefaultKmsKeyId(_ request: AWSEC2ResetEbsDefaultKmsKeyIdRequest) async throws -> AWSEC2ResetEbsDefaultKmsKeyIdResultParameters
requestA container for the necessary parameters to execute the ResetEbsDefaultKmsKeyId service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute.
See
AWSEC2ResetFpgaImageAttributeRequest
See
AWSEC2ResetFpgaImageAttributeResult
Declaration
Objective-C
- (id)resetFpgaImageAttribute: (nonnull AWSEC2ResetFpgaImageAttributeRequest *)request;Swift
func resetFpgaImageAttribute(_ request: AWSEC2ResetFpgaImageAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ResetFpgaImageAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2ResetFpgaImageAttributeResult. -
Resets the specified attribute of the specified Amazon FPGA Image (AFI) to its default value. You can only reset the load permission attribute.
See
AWSEC2ResetFpgaImageAttributeRequest
See
AWSEC2ResetFpgaImageAttributeResult
Declaration
Objective-C
- (void) resetFpgaImageAttribute: (nonnull AWSEC2ResetFpgaImageAttributeRequest *)request completionHandler: (void (^_Nullable)(AWSEC2ResetFpgaImageAttributeResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func resetFpgaImageAttribute(_ request: AWSEC2ResetFpgaImageAttributeRequest) async throws -> AWSEC2ResetFpgaImageAttributeResultParameters
requestA container for the necessary parameters to execute the ResetFpgaImageAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Resets an attribute of an AMI to its default value.
See
AWSEC2ResetImageAttributeRequest
Declaration
Objective-C
- (id)resetImageAttribute:(nonnull AWSEC2ResetImageAttributeRequest *)request;Swift
func resetImageAttribute(_ request: AWSEC2ResetImageAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ResetImageAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Resets an attribute of an AMI to its default value.
See
AWSEC2ResetImageAttributeRequest
Declaration
Objective-C
- (void)resetImageAttribute:(nonnull AWSEC2ResetImageAttributeRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func resetImageAttribute(_ request: AWSEC2ResetImageAttributeRequest) async throwsParameters
requestA container for the necessary parameters to execute the ResetImageAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Resets an attribute of an instance to its default value. To reset the
kernelorramdisk, the instance must be in a stopped state. To reset thesourceDestCheck, the instance can be either running or stopped.The
sourceDestCheckattribute controls whether source/destination checking is enabled. The default value istrue, which means checking is enabled. This value must befalsefor a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon VPC User Guide.See
AWSEC2ResetInstanceAttributeRequest
Declaration
Objective-C
- (id)resetInstanceAttribute: (nonnull AWSEC2ResetInstanceAttributeRequest *)request;Swift
func resetInstanceAttribute(_ request: AWSEC2ResetInstanceAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ResetInstanceAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Resets an attribute of an instance to its default value. To reset the
kernelorramdisk, the instance must be in a stopped state. To reset thesourceDestCheck, the instance can be either running or stopped.The
sourceDestCheckattribute controls whether source/destination checking is enabled. The default value istrue, which means checking is enabled. This value must befalsefor a NAT instance to perform NAT. For more information, see NAT Instances in the Amazon VPC User Guide.See
AWSEC2ResetInstanceAttributeRequest
Declaration
Objective-C
- (void)resetInstanceAttribute: (nonnull AWSEC2ResetInstanceAttributeRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func resetInstanceAttribute(_ request: AWSEC2ResetInstanceAttributeRequest) async throwsParameters
requestA container for the necessary parameters to execute the ResetInstanceAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Resets a network interface attribute. You can specify only one attribute at a time.
See
AWSEC2ResetNetworkInterfaceAttributeRequest
Declaration
Objective-C
- (id)resetNetworkInterfaceAttribute: (nonnull AWSEC2ResetNetworkInterfaceAttributeRequest *)request;Swift
func resetNetworkInterfaceAttribute(_ request: AWSEC2ResetNetworkInterfaceAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ResetNetworkInterfaceAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Resets a network interface attribute. You can specify only one attribute at a time.
See
AWSEC2ResetNetworkInterfaceAttributeRequest
Declaration
Objective-C
- (void)resetNetworkInterfaceAttribute: (nonnull AWSEC2ResetNetworkInterfaceAttributeRequest *)request completionHandler:(void (^_Nullable)(NSError *_Nullable)) completionHandler;Swift
func resetNetworkInterfaceAttribute(_ request: AWSEC2ResetNetworkInterfaceAttributeRequest) async throwsParameters
requestA container for the necessary parameters to execute the ResetNetworkInterfaceAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Resets permission settings for the specified snapshot.
For more information about modifying snapshot permissions, see Share a snapshot in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ResetSnapshotAttributeRequest
Declaration
Objective-C
- (id)resetSnapshotAttribute: (nonnull AWSEC2ResetSnapshotAttributeRequest *)request;Swift
func resetSnapshotAttribute(_ request: AWSEC2ResetSnapshotAttributeRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the ResetSnapshotAttribute service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Resets permission settings for the specified snapshot.
For more information about modifying snapshot permissions, see Share a snapshot in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2ResetSnapshotAttributeRequest
Declaration
Objective-C
- (void)resetSnapshotAttribute: (nonnull AWSEC2ResetSnapshotAttributeRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func resetSnapshotAttribute(_ request: AWSEC2ResetSnapshotAttributeRequest) async throwsParameters
requestA container for the necessary parameters to execute the ResetSnapshotAttribute service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface.
See
AWSEC2RestoreAddressToClassicRequest
See
AWSEC2RestoreAddressToClassicResult
Declaration
Objective-C
- (id)restoreAddressToClassic: (nonnull AWSEC2RestoreAddressToClassicRequest *)request;Swift
func restoreAddress(toClassic request: AWSEC2RestoreAddressToClassicRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RestoreAddressToClassic service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RestoreAddressToClassicResult. -
Restores an Elastic IP address that was previously moved to the EC2-VPC platform back to the EC2-Classic platform. You cannot move an Elastic IP address that was originally allocated for use in EC2-VPC. The Elastic IP address must not be associated with an instance or network interface.
See
AWSEC2RestoreAddressToClassicRequest
See
AWSEC2RestoreAddressToClassicResult
Declaration
Objective-C
- (void) restoreAddressToClassic: (nonnull AWSEC2RestoreAddressToClassicRequest *)request completionHandler: (void (^_Nullable)(AWSEC2RestoreAddressToClassicResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func restoreAddress(toClassic request: AWSEC2RestoreAddressToClassicRequest) async throws -> AWSEC2RestoreAddressToClassicResultParameters
requestA container for the necessary parameters to execute the RestoreAddressToClassic service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Restores an AMI from the Recycle Bin. For more information, see Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2RestoreImageFromRecycleBinRequest
See
AWSEC2RestoreImageFromRecycleBinResult
Declaration
Objective-C
- (id)restoreImageFromRecycleBin: (nonnull AWSEC2RestoreImageFromRecycleBinRequest *)request;Swift
func restoreImage(fromRecycleBin request: AWSEC2RestoreImageFromRecycleBinRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RestoreImageFromRecycleBin service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RestoreImageFromRecycleBinResult. -
Restores an AMI from the Recycle Bin. For more information, see Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2RestoreImageFromRecycleBinRequest
See
AWSEC2RestoreImageFromRecycleBinResult
Declaration
Objective-C
- (void)restoreImageFromRecycleBin: (nonnull AWSEC2RestoreImageFromRecycleBinRequest *)request completionHandler: (void (^_Nullable)( AWSEC2RestoreImageFromRecycleBinResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func restoreImage(fromRecycleBin request: AWSEC2RestoreImageFromRecycleBinRequest) async throws -> AWSEC2RestoreImageFromRecycleBinResultParameters
requestA container for the necessary parameters to execute the RestoreImageFromRecycleBin service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Restores the entries from a previous version of a managed prefix list to a new version of the prefix list.
See
AWSEC2RestoreManagedPrefixListVersionRequest
See
AWSEC2RestoreManagedPrefixListVersionResult
Declaration
Objective-C
- (id)restoreManagedPrefixListVersion: (nonnull AWSEC2RestoreManagedPrefixListVersionRequest *)request;Swift
func restoreManagedPrefixListVersion(_ request: AWSEC2RestoreManagedPrefixListVersionRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RestoreManagedPrefixListVersion service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RestoreManagedPrefixListVersionResult. -
Restores the entries from a previous version of a managed prefix list to a new version of the prefix list.
See
AWSEC2RestoreManagedPrefixListVersionRequest
See
AWSEC2RestoreManagedPrefixListVersionResult
Declaration
Objective-C
- (void)restoreManagedPrefixListVersion: (nonnull AWSEC2RestoreManagedPrefixListVersionRequest *)request completionHandler: (void (^_Nullable)( AWSEC2RestoreManagedPrefixListVersionResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func restoreManagedPrefixListVersion(_ request: AWSEC2RestoreManagedPrefixListVersionRequest) async throws -> AWSEC2RestoreManagedPrefixListVersionResultParameters
requestA container for the necessary parameters to execute the RestoreManagedPrefixListVersion service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Restores a snapshot from the Recycle Bin. For more information, see Restore snapshots from the Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2RestoreSnapshotFromRecycleBinRequest
See
AWSEC2RestoreSnapshotFromRecycleBinResult
Declaration
Objective-C
- (id)restoreSnapshotFromRecycleBin: (nonnull AWSEC2RestoreSnapshotFromRecycleBinRequest *)request;Swift
func restoreSnapshot(fromRecycleBin request: AWSEC2RestoreSnapshotFromRecycleBinRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RestoreSnapshotFromRecycleBin service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RestoreSnapshotFromRecycleBinResult. -
Restores a snapshot from the Recycle Bin. For more information, see Restore snapshots from the Recycle Bin in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2RestoreSnapshotFromRecycleBinRequest
See
AWSEC2RestoreSnapshotFromRecycleBinResult
Declaration
Objective-C
- (void) restoreSnapshotFromRecycleBin: (nonnull AWSEC2RestoreSnapshotFromRecycleBinRequest *)request completionHandler: (void (^_Nullable)( AWSEC2RestoreSnapshotFromRecycleBinResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func restoreSnapshot(fromRecycleBin request: AWSEC2RestoreSnapshotFromRecycleBinRequest) async throws -> AWSEC2RestoreSnapshotFromRecycleBinResultParameters
requestA container for the necessary parameters to execute the RestoreSnapshotFromRecycleBin service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore period or restore type for a snapshot that was previously temporarily restored.
For more information see Restore an archived snapshot and modify the restore period or restore type for a temporarily restored snapshot in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2RestoreSnapshotTierRequest
See
AWSEC2RestoreSnapshotTierResult
Declaration
Objective-C
- (id)restoreSnapshotTier:(nonnull AWSEC2RestoreSnapshotTierRequest *)request;Swift
func restoreSnapshotTier(_ request: AWSEC2RestoreSnapshotTierRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RestoreSnapshotTier service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RestoreSnapshotTierResult. -
Restores an archived Amazon EBS snapshot for use temporarily or permanently, or modifies the restore period or restore type for a snapshot that was previously temporarily restored.
For more information see Restore an archived snapshot and modify the restore period or restore type for a temporarily restored snapshot in the Amazon Elastic Compute Cloud User Guide.
See
AWSEC2RestoreSnapshotTierRequest
See
AWSEC2RestoreSnapshotTierResult
Declaration
Objective-C
- (void)restoreSnapshotTier:(nonnull AWSEC2RestoreSnapshotTierRequest *)request completionHandler: (void (^_Nullable)(AWSEC2RestoreSnapshotTierResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func restoreSnapshotTier(_ request: AWSEC2RestoreSnapshotTierRequest) async throws -> AWSEC2RestoreSnapshotTierResultParameters
requestA container for the necessary parameters to execute the RestoreSnapshotTier service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Removes an ingress authorization rule from a Client VPN endpoint.
See
AWSEC2RevokeClientVpnIngressRequest
See
AWSEC2RevokeClientVpnIngressResult
Declaration
Objective-C
- (id)revokeClientVpnIngress: (nonnull AWSEC2RevokeClientVpnIngressRequest *)request;Swift
func revokeClientVpnIngress(_ request: AWSEC2RevokeClientVpnIngressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RevokeClientVpnIngress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RevokeClientVpnIngressResult. -
Removes an ingress authorization rule from a Client VPN endpoint.
See
AWSEC2RevokeClientVpnIngressRequest
See
AWSEC2RevokeClientVpnIngressResult
Declaration
Objective-C
- (void) revokeClientVpnIngress: (nonnull AWSEC2RevokeClientVpnIngressRequest *)request completionHandler: (void (^_Nullable)(AWSEC2RevokeClientVpnIngressResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func revokeClientVpnIngress(_ request: AWSEC2RevokeClientVpnIngressRequest) async throws -> AWSEC2RevokeClientVpnIngressResultParameters
requestA container for the necessary parameters to execute the RevokeClientVpnIngress service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
[VPC only] Removes the specified outbound (egress) rules from a security group for EC2-VPC. This action does not apply to security groups for use in EC2-Classic.
You can specify rules using either rule IDs or security group rule properties. If you use rule properties, the values that you specify (for example, ports) must match the existing rule’s values exactly. Each rule has a protocol, from and to ports, and destination (CIDR range, security group, or prefix list). For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not need to specify the description to revoke the rule.
[Default VPC] If the values you specify do not match the existing rule’s values, no error is returned, and the output describes the security group rules that were not revoked.
Amazon Web Services recommends that you describe the security group to verify that the rules were removed.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
See
AWSEC2RevokeSecurityGroupEgressRequest
See
AWSEC2RevokeSecurityGroupEgressResult
Declaration
Objective-C
- (id)revokeSecurityGroupEgress: (nonnull AWSEC2RevokeSecurityGroupEgressRequest *)request;Swift
func revokeSecurityGroupEgress(_ request: AWSEC2RevokeSecurityGroupEgressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RevokeSecurityGroupEgress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RevokeSecurityGroupEgressResult. -
[VPC only] Removes the specified outbound (egress) rules from a security group for EC2-VPC. This action does not apply to security groups for use in EC2-Classic.
You can specify rules using either rule IDs or security group rule properties. If you use rule properties, the values that you specify (for example, ports) must match the existing rule’s values exactly. Each rule has a protocol, from and to ports, and destination (CIDR range, security group, or prefix list). For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not need to specify the description to revoke the rule.
[Default VPC] If the values you specify do not match the existing rule’s values, no error is returned, and the output describes the security group rules that were not revoked.
Amazon Web Services recommends that you describe the security group to verify that the rules were removed.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
See
AWSEC2RevokeSecurityGroupEgressRequest
See
AWSEC2RevokeSecurityGroupEgressResult
Declaration
Objective-C
- (void)revokeSecurityGroupEgress: (nonnull AWSEC2RevokeSecurityGroupEgressRequest *)request completionHandler: (void (^_Nullable)( AWSEC2RevokeSecurityGroupEgressResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func revokeSecurityGroupEgress(_ request: AWSEC2RevokeSecurityGroupEgressRequest) async throws -> AWSEC2RevokeSecurityGroupEgressResultParameters
requestA container for the necessary parameters to execute the RevokeSecurityGroupEgress service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Removes the specified inbound (ingress) rules from a security group.
You can specify rules using either rule IDs or security group rule properties. If you use rule properties, the values that you specify (for example, ports) must match the existing rule’s values exactly. Each rule has a protocol, from and to ports, and source (CIDR range, security group, or prefix list). For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not need to specify the description to revoke the rule.
[EC2-Classic, default VPC] If the values you specify do not match the existing rule’s values, no error is returned, and the output describes the security group rules that were not revoked.
Amazon Web Services recommends that you describe the security group to verify that the rules were removed.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
See
AWSEC2RevokeSecurityGroupIngressRequest
See
AWSEC2RevokeSecurityGroupIngressResult
Declaration
Objective-C
- (id)revokeSecurityGroupIngress: (nonnull AWSEC2RevokeSecurityGroupIngressRequest *)request;Swift
func revokeSecurityGroupIngress(_ request: AWSEC2RevokeSecurityGroupIngressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RevokeSecurityGroupIngress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RevokeSecurityGroupIngressResult. -
Removes the specified inbound (ingress) rules from a security group.
You can specify rules using either rule IDs or security group rule properties. If you use rule properties, the values that you specify (for example, ports) must match the existing rule’s values exactly. Each rule has a protocol, from and to ports, and source (CIDR range, security group, or prefix list). For the TCP and UDP protocols, you must also specify the destination port or range of ports. For the ICMP protocol, you must also specify the ICMP type and code. If the security group rule has a description, you do not need to specify the description to revoke the rule.
[EC2-Classic, default VPC] If the values you specify do not match the existing rule’s values, no error is returned, and the output describes the security group rules that were not revoked.
Amazon Web Services recommends that you describe the security group to verify that the rules were removed.
Rule changes are propagated to instances within the security group as quickly as possible. However, a small delay might occur.
See
AWSEC2RevokeSecurityGroupIngressRequest
See
AWSEC2RevokeSecurityGroupIngressResult
Declaration
Objective-C
- (void)revokeSecurityGroupIngress: (nonnull AWSEC2RevokeSecurityGroupIngressRequest *)request completionHandler: (void (^_Nullable)( AWSEC2RevokeSecurityGroupIngressResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func revokeSecurityGroupIngress(_ request: AWSEC2RevokeSecurityGroupIngressRequest) async throws -> AWSEC2RevokeSecurityGroupIngressResultParameters
requestA container for the necessary parameters to execute the RevokeSecurityGroupIngress service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Launches the specified number of instances using an AMI for which you have permissions.
You can specify a number of options, or leave the default options. The following rules apply:
[EC2-VPC] If you don’t specify a subnet ID, we choose a default subnet from your default VPC for you. If you don’t have a default VPC, you must specify a subnet ID in the request.
[EC2-Classic] If don’t specify an Availability Zone, we choose one for you.
Some instance types must be launched into a VPC. If you do not have a default VPC, or if you do not specify a subnet ID, the request fails. For more information, see Instance types available only in a VPC.
[EC2-VPC] All instances have a network interface with a primary private IPv4 address. If you don’t specify this address, we choose one from the IPv4 range of your subnet.
Not all instance types support IPv6 addresses. For more information, see Instance types.
If you don’t specify a security group ID, we use the default security group. For more information, see Security groups.
If any of the AMIs have a product code attached for which the user has not subscribed, the request fails.
You can create a launch template, which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify the launch template instead of specifying the launch parameters.
To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances.
An instance is ready for you to use when it’s in the
runningstate. You can check the state of your instance using DescribeInstances. You can tag instances and EBS volumes during launch, after launch, or both. For more information, see CreateTags and Tagging your Amazon EC2 resources.Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key pairs.
For troubleshooting, see What to do if an instance immediately terminates, and Troubleshooting connecting to your instance.
See
AWSEC2RunInstancesRequest
See
AWSEC2Reservation
Declaration
Objective-C
- (id)runInstances:(nonnull AWSEC2RunInstancesRequest *)request;Swift
func runInstances(_ request: AWSEC2RunInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RunInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2Reservation. -
Launches the specified number of instances using an AMI for which you have permissions.
You can specify a number of options, or leave the default options. The following rules apply:
[EC2-VPC] If you don’t specify a subnet ID, we choose a default subnet from your default VPC for you. If you don’t have a default VPC, you must specify a subnet ID in the request.
[EC2-Classic] If don’t specify an Availability Zone, we choose one for you.
Some instance types must be launched into a VPC. If you do not have a default VPC, or if you do not specify a subnet ID, the request fails. For more information, see Instance types available only in a VPC.
[EC2-VPC] All instances have a network interface with a primary private IPv4 address. If you don’t specify this address, we choose one from the IPv4 range of your subnet.
Not all instance types support IPv6 addresses. For more information, see Instance types.
If you don’t specify a security group ID, we use the default security group. For more information, see Security groups.
If any of the AMIs have a product code attached for which the user has not subscribed, the request fails.
You can create a launch template, which is a resource that contains the parameters to launch an instance. When you launch an instance using RunInstances, you can specify the launch template instead of specifying the launch parameters.
To ensure faster instance launches, break up large requests into smaller batches. For example, create five separate launch requests for 100 instances each instead of one launch request for 500 instances.
An instance is ready for you to use when it’s in the
runningstate. You can check the state of your instance using DescribeInstances. You can tag instances and EBS volumes during launch, after launch, or both. For more information, see CreateTags and Tagging your Amazon EC2 resources.Linux instances have access to the public key of the key pair at boot. You can use this key to provide secure access to the instance. Amazon EC2 public images use this feature to provide secure access without passwords. For more information, see Key pairs.
For troubleshooting, see What to do if an instance immediately terminates, and Troubleshooting connecting to your instance.
See
AWSEC2RunInstancesRequest
See
AWSEC2Reservation
Declaration
Objective-C
- (void)runInstances:(nonnull AWSEC2RunInstancesRequest *)request completionHandler:(void (^_Nullable)(AWSEC2Reservation *_Nullable, NSError *_Nullable))completionHandler;Swift
func runInstances(_ request: AWSEC2RunInstancesRequest) async throws -> AWSEC2ReservationParameters
requestA container for the necessary parameters to execute the RunInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Launches the specified Scheduled Instances.
Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.
You must launch a Scheduled Instance during its scheduled time period. You can’t stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances in the Amazon EC2 User Guide.
See
AWSEC2RunScheduledInstancesRequest
See
AWSEC2RunScheduledInstancesResult
Declaration
Objective-C
- (id)runScheduledInstances: (nonnull AWSEC2RunScheduledInstancesRequest *)request;Swift
func runScheduledInstances(_ request: AWSEC2RunScheduledInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the RunScheduledInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2RunScheduledInstancesResult. -
Launches the specified Scheduled Instances.
Before you can launch a Scheduled Instance, you must purchase it and obtain an identifier using PurchaseScheduledInstances.
You must launch a Scheduled Instance during its scheduled time period. You can’t stop or reboot a Scheduled Instance, but you can terminate it as needed. If you terminate a Scheduled Instance before the current scheduled time period ends, you can launch it again after a few minutes. For more information, see Scheduled Instances in the Amazon EC2 User Guide.
See
AWSEC2RunScheduledInstancesRequest
See
AWSEC2RunScheduledInstancesResult
Declaration
Objective-C
- (void)runScheduledInstances: (nonnull AWSEC2RunScheduledInstancesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2RunScheduledInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func runScheduledInstances(_ request: AWSEC2RunScheduledInstancesRequest) async throws -> AWSEC2RunScheduledInstancesResultParameters
requestA container for the necessary parameters to execute the RunScheduledInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Searches for routes in the specified local gateway route table.
See
AWSEC2SearchLocalGatewayRoutesRequest
See
AWSEC2SearchLocalGatewayRoutesResult
Declaration
Objective-C
- (id)searchLocalGatewayRoutes: (nonnull AWSEC2SearchLocalGatewayRoutesRequest *)request;Swift
func searchLocalGatewayRoutes(_ request: AWSEC2SearchLocalGatewayRoutesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the SearchLocalGatewayRoutes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2SearchLocalGatewayRoutesResult. -
Searches for routes in the specified local gateway route table.
See
AWSEC2SearchLocalGatewayRoutesRequest
See
AWSEC2SearchLocalGatewayRoutesResult
Declaration
Objective-C
- (void)searchLocalGatewayRoutes: (nonnull AWSEC2SearchLocalGatewayRoutesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2SearchLocalGatewayRoutesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func searchLocalGatewayRoutes(_ request: AWSEC2SearchLocalGatewayRoutesRequest) async throws -> AWSEC2SearchLocalGatewayRoutesResultParameters
requestA container for the necessary parameters to execute the SearchLocalGatewayRoutes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Searches one or more transit gateway multicast groups and returns the group membership information.
See
AWSEC2SearchTransitGatewayMulticastGroupsRequest
See
AWSEC2SearchTransitGatewayMulticastGroupsResult
Declaration
Objective-C
- (id)searchTransitGatewayMulticastGroups: (nonnull AWSEC2SearchTransitGatewayMulticastGroupsRequest *)request;Swift
func searchTransitGatewayMulticastGroups(_ request: AWSEC2SearchTransitGatewayMulticastGroupsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the SearchTransitGatewayMulticastGroups service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2SearchTransitGatewayMulticastGroupsResult. -
Searches one or more transit gateway multicast groups and returns the group membership information.
See
AWSEC2SearchTransitGatewayMulticastGroupsRequest
See
AWSEC2SearchTransitGatewayMulticastGroupsResult
Declaration
Objective-C
- (void) searchTransitGatewayMulticastGroups: (nonnull AWSEC2SearchTransitGatewayMulticastGroupsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2SearchTransitGatewayMulticastGroupsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func searchTransitGatewayMulticastGroups(_ request: AWSEC2SearchTransitGatewayMulticastGroupsRequest) async throws -> AWSEC2SearchTransitGatewayMulticastGroupsResultParameters
requestA container for the necessary parameters to execute the SearchTransitGatewayMulticastGroups service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Searches for routes in the specified transit gateway route table.
See
AWSEC2SearchTransitGatewayRoutesRequest
See
AWSEC2SearchTransitGatewayRoutesResult
Declaration
Objective-C
- (id)searchTransitGatewayRoutes: (nonnull AWSEC2SearchTransitGatewayRoutesRequest *)request;Swift
func searchTransitGatewayRoutes(_ request: AWSEC2SearchTransitGatewayRoutesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the SearchTransitGatewayRoutes service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2SearchTransitGatewayRoutesResult. -
Searches for routes in the specified transit gateway route table.
See
AWSEC2SearchTransitGatewayRoutesRequest
See
AWSEC2SearchTransitGatewayRoutesResult
Declaration
Objective-C
- (void)searchTransitGatewayRoutes: (nonnull AWSEC2SearchTransitGatewayRoutesRequest *)request completionHandler: (void (^_Nullable)( AWSEC2SearchTransitGatewayRoutesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func searchTransitGatewayRoutes(_ request: AWSEC2SearchTransitGatewayRoutesRequest) async throws -> AWSEC2SearchTransitGatewayRoutesResultParameters
requestA container for the necessary parameters to execute the SearchTransitGatewayRoutes service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen/stop error (on Windows instances). For instances based on Intel and AMD processors, the interrupt is received as a non-maskable interrupt (NMI).
In general, the operating system crashes and reboots when a kernel panic or stop error is triggered. The operating system can also be configured to perform diagnostic tasks, such as generating a memory dump file, loading a secondary kernel, or obtaining a call trace.
Before sending a diagnostic interrupt to your instance, ensure that its operating system is configured to perform the required diagnostic tasks.
For more information about configuring your operating system to generate a crash dump when a kernel panic or stop error occurs, see Send a diagnostic interrupt (for advanced users) (Linux instances) or Send a diagnostic interrupt (for advanced users) (Windows instances).
See
AWSEC2SendDiagnosticInterruptRequest
Declaration
Objective-C
- (id)sendDiagnosticInterrupt: (nonnull AWSEC2SendDiagnosticInterruptRequest *)request;Swift
func sendDiagnosticInterrupt(_ request: AWSEC2SendDiagnosticInterruptRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the SendDiagnosticInterrupt service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Sends a diagnostic interrupt to the specified Amazon EC2 instance to trigger a kernel panic (on Linux instances), or a blue screen/stop error (on Windows instances). For instances based on Intel and AMD processors, the interrupt is received as a non-maskable interrupt (NMI).
In general, the operating system crashes and reboots when a kernel panic or stop error is triggered. The operating system can also be configured to perform diagnostic tasks, such as generating a memory dump file, loading a secondary kernel, or obtaining a call trace.
Before sending a diagnostic interrupt to your instance, ensure that its operating system is configured to perform the required diagnostic tasks.
For more information about configuring your operating system to generate a crash dump when a kernel panic or stop error occurs, see Send a diagnostic interrupt (for advanced users) (Linux instances) or Send a diagnostic interrupt (for advanced users) (Windows instances).
See
AWSEC2SendDiagnosticInterruptRequest
Declaration
Objective-C
- (void)sendDiagnosticInterrupt: (nonnull AWSEC2SendDiagnosticInterruptRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func sendDiagnosticInterrupt(_ request: AWSEC2SendDiagnosticInterruptRequest) async throwsParameters
requestA container for the necessary parameters to execute the SendDiagnosticInterrupt service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Starts an Amazon EBS-backed instance that you’ve previously stopped.
Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.
Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.
Performing this operation on an instance that uses an instance store as its root device returns an error.
If you attempt to start a T3 instance with
hosttenancy and theunlimtedCPU credit option, the request fails. TheunlimitedCPU credit option is not supported on Dedicated Hosts. Before you start the instance, either change its CPU credit option tostandard, or change its tenancy todefaultordedicated.For more information, see Stop and start your instance in the Amazon EC2 User Guide.
See
AWSEC2StartInstancesRequest
See
AWSEC2StartInstancesResult
Declaration
Objective-C
- (id)startInstances:(nonnull AWSEC2StartInstancesRequest *)request;Swift
func startInstances(_ request: AWSEC2StartInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the StartInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2StartInstancesResult. -
Starts an Amazon EBS-backed instance that you’ve previously stopped.
Instances that use Amazon EBS volumes as their root devices can be quickly stopped and started. When an instance is stopped, the compute resources are released and you are not billed for instance usage. However, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. You can restart your instance at any time. Every time you start your instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.
Before stopping an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM.
Performing this operation on an instance that uses an instance store as its root device returns an error.
If you attempt to start a T3 instance with
hosttenancy and theunlimtedCPU credit option, the request fails. TheunlimitedCPU credit option is not supported on Dedicated Hosts. Before you start the instance, either change its CPU credit option tostandard, or change its tenancy todefaultordedicated.For more information, see Stop and start your instance in the Amazon EC2 User Guide.
See
AWSEC2StartInstancesRequest
See
AWSEC2StartInstancesResult
Declaration
Objective-C
- (void)startInstances:(nonnull AWSEC2StartInstancesRequest *)request completionHandler:(void (^_Nullable)(AWSEC2StartInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func startInstances(_ request: AWSEC2StartInstancesRequest) async throws -> AWSEC2StartInstancesResultParameters
requestA container for the necessary parameters to execute the StartInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Starts analyzing the specified Network Access Scope.
See
AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest
See
AWSEC2StartNetworkInsightsAccessScopeAnalysisResult
Declaration
Objective-C
- (id)startNetworkInsightsAccessScopeAnalysis: (nonnull AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest *)request;Swift
func startNetworkInsightsAccessScopeAnalysis(_ request: AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the StartNetworkInsightsAccessScopeAnalysis service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2StartNetworkInsightsAccessScopeAnalysisResult. -
Starts analyzing the specified Network Access Scope.
See
AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest
See
AWSEC2StartNetworkInsightsAccessScopeAnalysisResult
Declaration
Objective-C
- (void) startNetworkInsightsAccessScopeAnalysis: (nonnull AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest *)request completionHandler: (void (^_Nullable)( AWSEC2StartNetworkInsightsAccessScopeAnalysisResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func startNetworkInsightsAccessScopeAnalysis(_ request: AWSEC2StartNetworkInsightsAccessScopeAnalysisRequest) async throws -> AWSEC2StartNetworkInsightsAccessScopeAnalysisResultParameters
requestA container for the necessary parameters to execute the StartNetworkInsightsAccessScopeAnalysis service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Starts analyzing the specified path. If the path is reachable, the operation returns the shortest feasible path.
See
AWSEC2StartNetworkInsightsAnalysisRequest
See
AWSEC2StartNetworkInsightsAnalysisResult
Declaration
Objective-C
- (id)startNetworkInsightsAnalysis: (nonnull AWSEC2StartNetworkInsightsAnalysisRequest *)request;Swift
func startNetworkInsightsAnalysis(_ request: AWSEC2StartNetworkInsightsAnalysisRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the StartNetworkInsightsAnalysis service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2StartNetworkInsightsAnalysisResult. -
Starts analyzing the specified path. If the path is reachable, the operation returns the shortest feasible path.
See
AWSEC2StartNetworkInsightsAnalysisRequest
See
AWSEC2StartNetworkInsightsAnalysisResult
Declaration
Objective-C
- (void)startNetworkInsightsAnalysis: (nonnull AWSEC2StartNetworkInsightsAnalysisRequest *)request completionHandler: (void (^_Nullable)( AWSEC2StartNetworkInsightsAnalysisResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func startNetworkInsightsAnalysis(_ request: AWSEC2StartNetworkInsightsAnalysisRequest) async throws -> AWSEC2StartNetworkInsightsAnalysisResultParameters
requestA container for the necessary parameters to execute the StartNetworkInsightsAnalysis service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service.
The service provider must successfully perform the verification before the consumer can use the name to access the service.
Before the service provider runs this command, they must add a record to the DNS server.
See
AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest
See
AWSEC2StartVpcEndpointServicePrivateDnsVerificationResult
Declaration
Objective-C
- (id)startVpcEndpointServicePrivateDnsVerification: (nonnull AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest *) request;Swift
func startVpcEndpointServicePrivateDnsVerification(_ request: AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the StartVpcEndpointServicePrivateDnsVerification service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2StartVpcEndpointServicePrivateDnsVerificationResult. -
Initiates the verification process to prove that the service provider owns the private DNS name domain for the endpoint service.
The service provider must successfully perform the verification before the consumer can use the name to access the service.
Before the service provider runs this command, they must add a record to the DNS server.
See
AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest
See
AWSEC2StartVpcEndpointServicePrivateDnsVerificationResult
Declaration
Objective-C
- (void) startVpcEndpointServicePrivateDnsVerification: (nonnull AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest *) request completionHandler: (void (^_Nullable)( AWSEC2StartVpcEndpointServicePrivateDnsVerificationResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func startVpcEndpointServicePrivateDnsVerification(_ request: AWSEC2StartVpcEndpointServicePrivateDnsVerificationRequest) async throws -> AWSEC2StartVpcEndpointServicePrivateDnsVerificationResultParameters
requestA container for the necessary parameters to execute the StartVpcEndpointServicePrivateDnsVerification service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Stops an Amazon EBS-backed instance. For more information, see Stop and start your instance in the Amazon EC2 User Guide.
You can use the Stop action to hibernate an instance if the instance is enabled for hibernation and it meets the hibernation prerequisites. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
We don’t charge usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.
You can’t stop or hibernate instance store-backed instances. You can’t use the Stop action to hibernate Spot Instances, but you can specify that Amazon EC2 should hibernate Spot Instances when they are interrupted. For more information, see Hibernating interrupted Spot Instances in the Amazon EC2 User Guide.
When you stop or hibernate an instance, we shut it down. You can restart your instance at any time. Before stopping or hibernating an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM, but hibernating an instance does preserve data stored in RAM. If an instance cannot hibernate successfully, a normal shutdown occurs.
Stopping and hibernating an instance is different to rebooting or terminating it. For example, when you stop or hibernate an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, hibernating, and terminating instances, see Instance lifecycle in the Amazon EC2 User Guide.
When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshoot stopping your instance in the Amazon EC2 User Guide.
See
AWSEC2StopInstancesRequest
See
AWSEC2StopInstancesResult
Declaration
Objective-C
- (id)stopInstances:(nonnull AWSEC2StopInstancesRequest *)request;Swift
func stopInstances(_ request: AWSEC2StopInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the StopInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2StopInstancesResult. -
Stops an Amazon EBS-backed instance. For more information, see Stop and start your instance in the Amazon EC2 User Guide.
You can use the Stop action to hibernate an instance if the instance is enabled for hibernation and it meets the hibernation prerequisites. For more information, see Hibernate your instance in the Amazon EC2 User Guide.
We don’t charge usage for a stopped instance, or data transfer fees; however, your root partition Amazon EBS volume remains and continues to persist your data, and you are charged for Amazon EBS volume usage. Every time you start your instance, Amazon EC2 charges a one-minute minimum for instance usage, and thereafter charges per second for instance usage.
You can’t stop or hibernate instance store-backed instances. You can’t use the Stop action to hibernate Spot Instances, but you can specify that Amazon EC2 should hibernate Spot Instances when they are interrupted. For more information, see Hibernating interrupted Spot Instances in the Amazon EC2 User Guide.
When you stop or hibernate an instance, we shut it down. You can restart your instance at any time. Before stopping or hibernating an instance, make sure it is in a state from which it can be restarted. Stopping an instance does not preserve data stored in RAM, but hibernating an instance does preserve data stored in RAM. If an instance cannot hibernate successfully, a normal shutdown occurs.
Stopping and hibernating an instance is different to rebooting or terminating it. For example, when you stop or hibernate an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, the root device and any other devices attached during the instance launch are automatically deleted. For more information about the differences between rebooting, stopping, hibernating, and terminating instances, see Instance lifecycle in the Amazon EC2 User Guide.
When you stop an instance, we attempt to shut it down forcibly after a short while. If your instance appears stuck in the stopping state after a period of time, there may be an issue with the underlying host computer. For more information, see Troubleshoot stopping your instance in the Amazon EC2 User Guide.
See
AWSEC2StopInstancesRequest
See
AWSEC2StopInstancesResult
Declaration
Objective-C
- (void)stopInstances:(nonnull AWSEC2StopInstancesRequest *)request completionHandler:(void (^_Nullable)(AWSEC2StopInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func stopInstances(_ request: AWSEC2StopInstancesRequest) async throws -> AWSEC2StopInstancesResultParameters
requestA container for the necessary parameters to execute the StopInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user.
See
AWSEC2TerminateClientVpnConnectionsRequest
See
AWSEC2TerminateClientVpnConnectionsResult
Declaration
Objective-C
- (id)terminateClientVpnConnections: (nonnull AWSEC2TerminateClientVpnConnectionsRequest *)request;Swift
func terminateClientVpnConnections(_ request: AWSEC2TerminateClientVpnConnectionsRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the TerminateClientVpnConnections service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2TerminateClientVpnConnectionsResult. -
Terminates active Client VPN endpoint connections. This action can be used to terminate a specific client connection, or up to five connections established by a specific user.
See
AWSEC2TerminateClientVpnConnectionsRequest
See
AWSEC2TerminateClientVpnConnectionsResult
Declaration
Objective-C
- (void) terminateClientVpnConnections: (nonnull AWSEC2TerminateClientVpnConnectionsRequest *)request completionHandler: (void (^_Nullable)( AWSEC2TerminateClientVpnConnectionsResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func terminateClientVpnConnections(_ request: AWSEC2TerminateClientVpnConnectionsRequest) async throws -> AWSEC2TerminateClientVpnConnectionsResultParameters
requestA container for the necessary parameters to execute the TerminateClientVpnConnections service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Shuts down the specified instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.
If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.
If you terminate multiple instances across multiple Availability Zones, and one or more of the specified instances are enabled for termination protection, the request fails with the following results:
The specified instances that are in the same Availability Zone as the protected instance are not terminated.
The specified instances that are in different Availability Zones, where no other specified instances are protected, are successfully terminated.
For example, say you have the following instances:
Instance A:
us-east-1a; Not protectedInstance B:
us-east-1a; Not protectedInstance C:
us-east-1b; ProtectedInstance D:
us-east-1b; not protected
If you attempt to terminate all of these instances in the same request, the request reports failure with the following results:
Instance A and Instance B are successfully terminated because none of the specified instances in
us-east-1aare enabled for termination protection.Instance C and Instance D fail to terminate because at least one of the specified instances in
us-east-1b(Instance C) is enabled for termination protection.
Terminated instances remain visible after termination (for approximately one hour).
By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.
You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the
DeleteOnTerminationblock device mapping parameter set totrueare automatically deleted. For more information about the differences between stopping and terminating instances, see Instance lifecycle in the Amazon EC2 User Guide.For more information about troubleshooting, see Troubleshooting terminating your instance in the Amazon EC2 User Guide.
See
AWSEC2TerminateInstancesRequest
See
AWSEC2TerminateInstancesResult
Declaration
Objective-C
- (id)terminateInstances:(nonnull AWSEC2TerminateInstancesRequest *)request;Swift
func terminateInstances(_ request: AWSEC2TerminateInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the TerminateInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2TerminateInstancesResult. -
Shuts down the specified instances. This operation is idempotent; if you terminate an instance more than once, each call succeeds.
If you specify multiple instances and the request fails (for example, because of a single incorrect instance ID), none of the instances are terminated.
If you terminate multiple instances across multiple Availability Zones, and one or more of the specified instances are enabled for termination protection, the request fails with the following results:
The specified instances that are in the same Availability Zone as the protected instance are not terminated.
The specified instances that are in different Availability Zones, where no other specified instances are protected, are successfully terminated.
For example, say you have the following instances:
Instance A:
us-east-1a; Not protectedInstance B:
us-east-1a; Not protectedInstance C:
us-east-1b; ProtectedInstance D:
us-east-1b; not protected
If you attempt to terminate all of these instances in the same request, the request reports failure with the following results:
Instance A and Instance B are successfully terminated because none of the specified instances in
us-east-1aare enabled for termination protection.Instance C and Instance D fail to terminate because at least one of the specified instances in
us-east-1b(Instance C) is enabled for termination protection.
Terminated instances remain visible after termination (for approximately one hour).
By default, Amazon EC2 deletes all EBS volumes that were attached when the instance launched. Volumes attached after instance launch continue running.
You can stop, start, and terminate EBS-backed instances. You can only terminate instance store-backed instances. What happens to an instance differs if you stop it or terminate it. For example, when you stop an instance, the root device and any other devices attached to the instance persist. When you terminate an instance, any attached EBS volumes with the
DeleteOnTerminationblock device mapping parameter set totrueare automatically deleted. For more information about the differences between stopping and terminating instances, see Instance lifecycle in the Amazon EC2 User Guide.For more information about troubleshooting, see Troubleshooting terminating your instance in the Amazon EC2 User Guide.
See
AWSEC2TerminateInstancesRequest
See
AWSEC2TerminateInstancesResult
Declaration
Objective-C
- (void)terminateInstances:(nonnull AWSEC2TerminateInstancesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2TerminateInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func terminateInstances(_ request: AWSEC2TerminateInstancesRequest) async throws -> AWSEC2TerminateInstancesResultParameters
requestA container for the necessary parameters to execute the TerminateInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a network interface.
See
AWSEC2UnassignIpv6AddressesRequest
See
AWSEC2UnassignIpv6AddressesResult
Declaration
Objective-C
- (id)unassignIpv6Addresses: (nonnull AWSEC2UnassignIpv6AddressesRequest *)request;Swift
func unassignIpv6Addresses(_ request: AWSEC2UnassignIpv6AddressesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the UnassignIpv6Addresses service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2UnassignIpv6AddressesResult. -
Unassigns one or more IPv6 addresses IPv4 Prefix Delegation prefixes from a network interface.
See
AWSEC2UnassignIpv6AddressesRequest
See
AWSEC2UnassignIpv6AddressesResult
Declaration
Objective-C
- (void)unassignIpv6Addresses: (nonnull AWSEC2UnassignIpv6AddressesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2UnassignIpv6AddressesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func unassignIpv6Addresses(_ request: AWSEC2UnassignIpv6AddressesRequest) async throws -> AWSEC2UnassignIpv6AddressesResultParameters
requestA container for the necessary parameters to execute the UnassignIpv6Addresses service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface.
See
AWSEC2UnassignPrivateIpAddressesRequest
Declaration
Objective-C
- (id)unassignPrivateIpAddresses: (nonnull AWSEC2UnassignPrivateIpAddressesRequest *)request;Swift
func unassignPrivateIpAddresses(_ request: AWSEC2UnassignPrivateIpAddressesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the UnassignPrivateIpAddresses service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill benil. -
Unassigns one or more secondary private IP addresses, or IPv4 Prefix Delegation prefixes from a network interface.
See
AWSEC2UnassignPrivateIpAddressesRequest
Declaration
Objective-C
- (void)unassignPrivateIpAddresses: (nonnull AWSEC2UnassignPrivateIpAddressesRequest *)request completionHandler: (void (^_Nullable)(NSError *_Nullable))completionHandler;Swift
func unassignPrivateIpAddresses(_ request: AWSEC2UnassignPrivateIpAddressesRequest) async throwsParameters
requestA container for the necessary parameters to execute the UnassignPrivateIpAddresses service method.
completionHandlerThe completion handler to call when the load request is complete.
error- An error object that indicates why the request failed, ornilif the request was successful. -
Disables detailed monitoring for a running instance. For more information, see Monitoring your instances and volumes in the Amazon EC2 User Guide.
See
AWSEC2UnmonitorInstancesRequest
See
AWSEC2UnmonitorInstancesResult
Declaration
Objective-C
- (id)unmonitorInstances:(nonnull AWSEC2UnmonitorInstancesRequest *)request;Swift
func unmonitorInstances(_ request: AWSEC2UnmonitorInstancesRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the UnmonitorInstances service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2UnmonitorInstancesResult. -
Disables detailed monitoring for a running instance. For more information, see Monitoring your instances and volumes in the Amazon EC2 User Guide.
See
AWSEC2UnmonitorInstancesRequest
See
AWSEC2UnmonitorInstancesResult
Declaration
Objective-C
- (void)unmonitorInstances:(nonnull AWSEC2UnmonitorInstancesRequest *)request completionHandler: (void (^_Nullable)(AWSEC2UnmonitorInstancesResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func unmonitorInstances(_ request: AWSEC2UnmonitorInstancesRequest) async throws -> AWSEC2UnmonitorInstancesResultParameters
requestA container for the necessary parameters to execute the UnmonitorInstances service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
[VPC only] Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.
See
AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest
See
AWSEC2UpdateSecurityGroupRuleDescriptionsEgressResult
Declaration
Objective-C
- (id)updateSecurityGroupRuleDescriptionsEgress: (nonnull AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest *)request;Swift
func updateSecurityGroupRuleDescriptionsEgress(_ request: AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the UpdateSecurityGroupRuleDescriptionsEgress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2UpdateSecurityGroupRuleDescriptionsEgressResult. -
[VPC only] Updates the description of an egress (outbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.
See
AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest
See
AWSEC2UpdateSecurityGroupRuleDescriptionsEgressResult
Declaration
Objective-C
- (void) updateSecurityGroupRuleDescriptionsEgress: (nonnull AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest *) request completionHandler: (void (^_Nullable)( AWSEC2UpdateSecurityGroupRuleDescriptionsEgressResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func updateSecurityGroupRuleDescriptionsEgress(_ request: AWSEC2UpdateSecurityGroupRuleDescriptionsEgressRequest) async throws -> AWSEC2UpdateSecurityGroupRuleDescriptionsEgressResultParameters
requestA container for the necessary parameters to execute the UpdateSecurityGroupRuleDescriptionsEgress service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.
See
AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest
See
AWSEC2UpdateSecurityGroupRuleDescriptionsIngressResult
Declaration
Objective-C
- (id)updateSecurityGroupRuleDescriptionsIngress: (nonnull AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest *)request;Swift
func updateSecurityGroupRuleDescriptionsIngress(_ request: AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the UpdateSecurityGroupRuleDescriptionsIngress service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2UpdateSecurityGroupRuleDescriptionsIngressResult. -
Updates the description of an ingress (inbound) security group rule. You can replace an existing description, or add a description to a rule that did not have one previously. You can remove a description for a security group rule by omitting the description parameter in the request.
See
AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest
See
AWSEC2UpdateSecurityGroupRuleDescriptionsIngressResult
Declaration
Objective-C
- (void) updateSecurityGroupRuleDescriptionsIngress: (nonnull AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest *) request completionHandler: (void (^_Nullable)( AWSEC2UpdateSecurityGroupRuleDescriptionsIngressResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func updateSecurityGroupRuleDescriptionsIngress(_ request: AWSEC2UpdateSecurityGroupRuleDescriptionsIngressRequest) async throws -> AWSEC2UpdateSecurityGroupRuleDescriptionsIngressResultParameters
requestA container for the necessary parameters to execute the UpdateSecurityGroupRuleDescriptionsIngress service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful. -
Stops advertising an address range that is provisioned as an address pool.
You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.
It can take a few minutes before traffic to the specified addresses stops routing to Amazon Web Services because of BGP propagation delays.
See
AWSEC2WithdrawByoipCidrRequest
See
AWSEC2WithdrawByoipCidrResult
Declaration
Objective-C
- (id)withdrawByoipCidr:(nonnull AWSEC2WithdrawByoipCidrRequest *)request;Swift
func withdrawByoipCidr(_ request: AWSEC2WithdrawByoipCidrRequest) -> Any!Parameters
requestA container for the necessary parameters to execute the WithdrawByoipCidr service method.
Return Value
An instance of
AWSTask. On successful execution,task.resultwill contain an instance ofAWSEC2WithdrawByoipCidrResult. -
Stops advertising an address range that is provisioned as an address pool.
You can perform this operation at most once every 10 seconds, even if you specify different address ranges each time.
It can take a few minutes before traffic to the specified addresses stops routing to Amazon Web Services because of BGP propagation delays.
See
AWSEC2WithdrawByoipCidrRequest
See
AWSEC2WithdrawByoipCidrResult
Declaration
Objective-C
- (void)withdrawByoipCidr:(nonnull AWSEC2WithdrawByoipCidrRequest *)request completionHandler: (void (^_Nullable)(AWSEC2WithdrawByoipCidrResult *_Nullable, NSError *_Nullable))completionHandler;Swift
func withdrawByoipCidr(_ request: AWSEC2WithdrawByoipCidrRequest) async throws -> AWSEC2WithdrawByoipCidrResultParameters
requestA container for the necessary parameters to execute the WithdrawByoipCidr service method.
completionHandlerThe completion handler to call when the load request is complete.
response- A response object, ornilif the request failed.error- An error object that indicates why the request failed, ornilif the request was successful.
View on GitHub
Install in Dash
AWSEC2 Class Reference